on 09-28-2005 4:19 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Werner
Try using '0x3b' instead of ;
cheers
Sameer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.