on 05-16-2006 7:58 AM
Hello,
I have a flat file that i read with the sender file adapter.
After content conversion I get not the result i wished to have...
The source flat file looks for example like this:
ABC;DEF;GHIJ
KLM;NOP;Q
RSTU;VW
After the Content Conversion I would like to have this result:
<Recordset>
<Data>
<Row>ABC;DEF;GHIJ
<Row>KLM;NOP;Q
<Row>RSTU;VW
< >
What sounds very similar but didnt work for me yesterday .
I defined a data type that looked like this:
DT_TEST (Complex Type)
Recordset (0..unbounded)
Data (1)
Row (type string / 0..unbounded)
During the file content conversion I just did this:
Recordsetname: Recordset
Recordset structure: Data, 1
Data.fieldNames = Row
Data.fieldSeparator = nl
This was also described in blog:
/people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
But my result is always like this:
<Recordset>
<Data>
<Row>ABC;DEF;GHIJ
</Data>
</Recordset>
<Recordset>
<Data>
<Row> KLM;NOP;Q
</Data>
</Recordset>
<Recordset>
<Data>
<Row> RSTU;VW
</Data>
</Recordset>
.And not like I wished .
Can anybody help me ?
Greetings
Tobias
Hi Tobias,
Remove the entry "Data.fieldSeparator = nl" and then try again.
Cheers
Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I just gone thru the blog and as per the structure defined I have no idea how this works this way.
But if you modify the structure to
RecordSet - occurs 0-1
Data - occurs 0-n
Row - occurs 0-1
And in the Content conversion mentions Data,* instead of Data,1.
In this case you will be getting a output like
<Data>
<Row>ddf,sdfsd,sdf</Row>
</Data>
<Data>
<Row>fff,sdfsd,sdf</Row>
</Data>
You can achieve this but I don't have any idea how to generate that kind of output with the Structure and the conversion parameter mentioned in the blog.
Thanks,
Prakash
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.