Hi Team
In the message mapping there is an error message
This is the iflow
I am converting a csv file to an xml file
The xml file structure is as follows:
<?xml version='1.0' encoding='UTF-8'?>
<dataset>
<record>
<Usuario>XXXXX</Usuario>
<IPGlobal>XXXXX</IPGlobal>
<Estatus>XXXXX</Estatus>
<IdDiv>XXXXX</IdDiv>
</record>
</dataset>
The file has more than 5000 records so I'm going to split it into blocks of 500 records.
This is the definition of the iterating splitter
This is the xml file structure after splitting it into blocks
<?xml version='1.0' encoding='UTF-8'?>
<record>
<Usuario>XXXXX</Usuario>
<IPGlobal>XXXXX</IPGlobal>
<Estatus>XXXXXe</Estatus>
<IdDiv>XXXX</IdDiv>
</record>
In this structure the <dataset> node is no longer there
With this structure configure the xsd file that is needed for the message mapping
This is the message mapping
But in the Iflow simulation there is this error:
The markup in the document following the root element must be well-formed
I think it's because the <dataset> node is needed in the xml file
I did a test without the splitter (with few records) and it works fine,
Is there any way to add the <dataset> node in the blocks of the XML files?
Thanks in advance
Request clarification before answering.
You'll want to use the general splitter instead of the iterating splitter if you want to keep the parent hierarchy in the XML... see the help on usage here - https://help.sap.com/docs/cloud-integration/sap-cloud-integration/general-and-iterating-splitter
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.