I have a custom function block which can read or write xml files. It can also create a new file, if one with the current name already exists. It does that by appending a number to the filename.
The first xml file is created without a problem (e.g. 1_Filename.xml
). However, if i run the code a second time when it should create 2_Filename.xml
, it gives me error 1828: Incompatible version of the serializing package.
Also when I try to load 1_Filename.xml
, it gives me error code 1828.
Finally if I change the "base" filename from Filename
to AnotherFilename
, it creates 1_AnotherFilename
without a problem, but fails when trying to create 2_Filename
. Again with the same error code.