XML deserialization

This forum is intended for cases when a problem can not be solved due to restrictions of the platform: a bug or lack of functionality.

#1
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Mar 20, 2012
Company: Abaco Soluciones S.A.

Hello.

We have to store some catalogs, charts of accounts, charts of calculation types in text templates in XML format, because in predefined values we can only store code and description, but we need more attributes and tabular sections.

And now i found out that when we delete all lines from tabular section in XML then after loading this XML to information base old lines still exist in tabular section.

I tested this on Chart of calculation types in 8.3.3.721 and 8.2.19.68.

The code for reading XML is quite simple:

Code
Object = XDTOSerializer.ReadXML(XMLR)

 
#2
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Oct 30, 2013
Company:

Maybe it happens because XDTOSerializer work with XDTOfactory, which contains XDTOpackage with your xml file schema, and it take tabular sections from this schema?

 
#3
People who like this:1Yes/0No
Active user
Rating: 6
Joined: Mar 20, 2012
Company: Abaco Soluciones S.A.

I use the global XDTOSerializer object to serialize and deserialize in one configuration without using any reference to XDTO Packages.

It seems that it takes the tabular section from database.

I don't understand how could the tabular section of deserialized object contain any data which doesn't exist in XML?

Maybe I explained the problem not very good.

For example, i have an XML with serialized ChartOfCalculationTypesObject without data in tabular section. Then I deserialize it and write to database. Now I have the chart of calculation types object in database without records in tabular section. Then i manualy add one line in database. Then  I deserialize original XML one more time and write it to database. Now I have the chart of calculation types object in database with one record in tabular section.

With catalog is the same thing

Edited: Mikhail Ivanenko - Oct 31, 2013 09:12 AM
 
#4
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Could you provide a configuration and XML files with serialized objects?

 
#5
People who like this:1Yes/0No
Active user
Rating: 6
Joined: Mar 20, 2012
Company: Abaco Soluciones S.A.

I made a test configuration with one catalog and XML file inside it as a template.

Edited: Mikhail Ivanenko - Nov 22, 2013 09:26 AM
 
#6
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Thank you for the information. I sent it to our developers.

 
#7
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Mikhail.

This problem is found even in 8.1 version and can not be a problem with migration to 8.3. It will be fixed in future versions, of course.

 
#8
People who like this:0Yes/0No
Interested
Rating: 32
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

You should definitely hire us as beta testers.  :)

 
#9
People who like this:1Yes/0No
Active user
Rating: 6
Joined: Mar 20, 2012
Company: Abaco Soluciones S.A.

In 8.3.4.365 issue still exists

 
#10
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Mar 20, 2012
Company: Abaco Soluciones S.A.

Hello. This problem still exists. (I tried on 8.3.4.482)

 
#11
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello!

I'm sorry, but this issue is still in progress. Thank you for keeping your eye on it.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.