Skip to Content

File Receiver Adapter - Content Conversion

Dear All,

We are using <b>DB to file Scenario</b>.We are using File Content conversion to get a File Comma Separated.

Data is picked up from the DB and our payload before getting in to File adapter is given below.

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

<ns6:AssoInfo_MT xmlns:ns6="urn:NDB2File2DB">

<AssoInfoList>

<AssoInfoNode>

<Name>ABCX</Name>

<ID>31154</ID>

<Salary>10000.0</Salary>

</AssoInfoNode>

<AssoInfoNode>

<Name>ASDAS</Name>

<ID>18978</ID>

<Salary>10000.0</Salary>

</AssoInfoNode>

</AssoInfoList>

</ns6:AssoInfo_MT>

In File content conversion we are giving

<b>AssoInfoNode.addHeaderLine = 0

AssoInfoNode.fieldSeparator = ,

AssoInfoNode.endSeparator = 'nl'</b>

We are getting output as

<b>ABCX,ASDAS</b>

But the <b>expected</b> output is

ABCX,31154,10000.0

ASDAS,18978,10000.0

What change we need to do in our File Receiver Adapter configuration.

Regards,

Vedavyas

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Feb 16, 2005 at 02:33 PM

    Hello,

    Test without these 2 options :

    AssoInfoNode.addHeaderLine = 0

    AssoInfoNode.endSeparator = 'nl'

    I think your problem is with the "endSeparator", it is not necessary.

    A new line is created for each new AssoInfoNode automaticaly.

    Regards,

    Chris

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.