Skip to Content
0
May 09, 2005 at 06:51 PM

XI 3.0 XML-->File content conversion

27 Views

Hi,

We are currently using XI 3.0 SP9, I have the following XML document that I wish to covert to a fixed length file using content conversion (One header line followed by a line for each PIITEM):-

<?xml version="1.0" encoding="UTF-8"?>

<ns:PICount xmlns:ns="XML2FileConversion">

<Site>AAAA</Site>

<PIRef>1234567890</PIRef>

<PIDoc>1234567890</PIDoc>

<PIYear>2005</PIYear>

<SLoc>0001</SLoc>

<SLocDesc>1234567890</SLocDesc>

<PIDate>20050509</PIDate>

<PIItem>

<SKU>123456789012345678</SKU>

<PILine>001</PILine>

</PIItem>

<PIItem>

<SKU>123456789012345678/SKU>

<PILine>002</PILine>

</PIItem>

</ns:PICount>

I have set-up a receiver communication channel with the following parameters :-

Recordset structure ns:PICount, PIItem

ns:PICount.fieldFixedLengths 4,10,10,4,4,10,8

PIItem.fieldFixedLengths 18,3

ns:PICount.endSeparator 'nl'

PIItem.endSeparator 'nl'

ns:PICount.fixedLengthTooShortHandling Cut

PIItem.fixedLengthTooShortHandling Cut

ns:PICount.addHeaderLine No

PIItem.addHeaderLine No

When I send the XML message I get the following message appear on the adapter log :-

Consistency error: more fields found in XML structure than specified in conversion parameters! Value '12345678901234567890')'

Any ideas how to get round this problem?

Regards

Ian