Skip to Content
author's profile photo Former Member
Former Member

Sender File Adapter Content Conversion

Hi All,

I need to poll the file from file location and convert into xml structure, input flat file look like below.

0001;xxxx;yyyy;zzzz

0001;aaaa;bbbb;ccccc;dddd;eee

0001;pppp;qqqq;rrrrr;ssss;tttt

Now requirement is to map the first record in Header with some field name whereas rest of the record in Item.

There is no unique field in flat file which can be use for keyfield value, only first record should go to header and rest in Item.

Please help me how to configure Content Conversion for Sender File Adapter

With Regards

Sunil

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 11:34 AM

    if there is no key field to recognize the record, then u can do it only thru UDF.

    if u know java, plz go ahd creating a udf and use it accordignly.

    also ur i/p structure for all records is not having equal number of fields. may be u can handle this thru FCC.

    thanks

    kiran

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 01:24 PM

    Hi Sunil,

    go through this blog.

    File Content Conversion for Unequal Number of Columns

    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns

    Almost same case has been given in the above blog.

    Regards,

    Sarvesh

    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.