cancel
Showing results for 
Search instead for 
Did you mean: 

Message mapping error in Iflow

10-30-2024 8:12 PM
Consultor2024 Explorer
1081 views 2 comments Go to solution
0 Likes
SAP Managed Tags
Labels
CPI
Subscribe

Hi Team

In the message mapping there is an error message

This is the iflow

Consultor2024_3-1730315194797.png

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

Consultor2024_1-1730315162186.png

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

Consultor2024_2-1730315162189.png

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

 

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Ryan-Crosby
Active Contributor

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

Consultor2024
Explorer
Thanks for your help

Answers (0)