Skip to Content

StrictXml2Plain Bean error

Hello Experts,

I am using StrictXml2Plain Bean in SFTP-Adapter.

And I am getting error.

Here the XML structure I use:

<MT_Addenda>

  <HeaderDetails>

    <Field1>wert1</Field1>

    <Field2>wert2</Field2>

  </HeaderDetails>

<Items>

  <Item>

    <fieldA>wertA</fieldA>

    <fieldB>wertB</fieldB>

    <fieldC>wertC</fieldC>

  </Item>

  <Item>

    <fieldA>wertX</fieldA>

    <fieldB>wertY</fieldB>

    <fieldC>wertZ</fieldC>

  </Item>

</Items>

</MT_Addenda>

I want to produce the following text file:

wert1;wert2

wertA;wertB;wertC

wertX;wertY;wertZ

I configured the StrictXml2Plain Bean as follows:

recordType                                 HeaderDetails,Item HeaderDetails.fieldSeparator ';' HeaderDetails.endSeparator 'nl' Item.fieldSeparator ';' Item.endSeparator 'nl'

Now I get the following error in SFTP Adapter monitor:

"com.sap.aii.af.app.modules.conversion.xml2plain.ConversionException: Invalid structure name encountered during conversion: Items at XML element MT_Addenda,Items."

What is the issue here?

Thanks

Elko

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 25, 2015 at 12:02 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Feb 24, 2015 at 03:27 PM

    Hi Eiko,

    Please remove the "items" tag from your payload.

    Check here Converting XML in the Receiver File/FTP Adapter to Text Format - Configuring the File/FTP Adapter in Integration Directo…, the hierarchy allowed, you have set one more branch.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded