Question

16
Replies
248
Views
Fedotochkin Ilya Member since 2011 21 posts
Lanit
Posted: 5 years ago
Last activity: 5 years ago
Closed
Solved

XML incorrect data filling

Hello everyone!


We have an integration where we need to send date, decimal, boolean values.

What we do:

1. Create a page of int data class.

2. Fill it with the values in Data transform.

3. Run XML Stream.

What we get:

Empty elements of data types listed above when corresponding properties do not exist in work object. XML does not pass XSD validation because of empty elements (decimal e.g.).

Documentation for XML Stream says:

Is Optional? - Select this option to prevent the element or attribute from being added to the generated XML stream content when there is no clipboard data to be mapped.

This option does not prevent empty elements to be created. What can we do to prevent creation of these empty elements?


I've created an SR for this problem, but maybe here I'll get an answer faster.


Data transform:

Data transform.jpg


XML Stream:

XML Stream.jpg


XSD:

XSD.jpg


Result XML:


XML result.jpg

Data Integration
Moderation Team has archived post
Share this page LinkedIn