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

Sender Content Conversion with ; endSeparator

Hi

I'm trying to read the following flat structure using a File Sender communication channel using Content Convesion.

11,99;22,99;33,99

This should be translated into:

<Employees>

<employee>

<employeeNumber>11</employeeNumber>

<employeeType>99</employeeType>

</employee>

<employee>

<employeeNumber>22</employeeNumber>

<employeeType>99</employeeType>

</employee>

<employee>

<employeeNumber>33</employeeNumber>

<employeeType>99</employeeType>

</employee>

</Employees>

Using the following settings:

Recordset Structure: employee,*

and Properties:

employee.fieldSeparator ,

employee.fieldNames employeeNumber,employeeType

employee.endSeparator ;

ignoreRecordsetName true

I get the following error:

more elements in file csv structure than

field names specified!

As soon as I change the endSeparator to 'nl' (and the file to match) everything works.

Is this a bug?

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 Sep 28, 2005 at 03:26 PM

    Hi Werner,

    No it is not a bug.

    Give the parameter <b><i>fieldSeparator</i></b> for root element i.e. Employees also and check your scenario again.

    Thanks & regards,

    Varun Joshi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 03:32 PM

    Hi Werner

    Try using '0x3b' instead of ;

    cheers

    Sameer

    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.