on 07-19-2006 6:24 AM
Hi Folks ,
The XMl Structure of my input file is
<?xml version="1.0" encoding="UTF-8"?>
<ns:file_sender_mt xmlns:ns="urn:filetofiledemo">
<recordset>
<data>
<name />
<city />
<age />
</data>
<adress>
<fnaame />
<lanme />
</adress>
</recordset>
</ns:file_sender_mt>
In my file conversion paramaters i have mentioned
data.fieldSeparator ,
data.fieldNames name,city,age
adreess.fieldSeparator ,
adreess.fieldNames fnaame,lanme
ignoreRecordsetName true
recordset.fieldSeparator ,
data.endSeparator ,
I fail to understand when in my input file
i give
1,2,3
4,5
ie value of data and adrees on diff lines it works fine
bt when i give the imput as 1,2,3,4,5
it fails in adapater
giving the exception
Sender Adapter v1014 for Party '', Service 'filetofile_bs':
Configured at 12:11:43 2006-07-18
Last message processing started 05:22:34 2006-07-19, Error: Conversion of complete file content to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 1 according to structure 'data':java.lang.Exception: ERROR in configuration: more elements in file csv structure than field names specified!
last retry interval started 05:22:34 2006-07-19
length 10,000 secs
I dont understand why i am getting this error as my data.endSeparator is ,
any inputs on this would be of grt help
Thanks
Amit
Hi,
I understand u have 2 more fields in address. Just try with this settings.
data.fieldSeparator ;
data.endSeparator ,
address.fieldSeparator :
address.endSeparator 'nl'
Now u can give the input file like
1;2;3,4:5
But if ur requirement is to have same fieldSeparator and endSeparator, this one will not be useful. Experts let me also know if I can have same valnes for fieldSeparator and endSeparator.
Regards,
Jai Shankar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Amit,
Try this,
<i>data.endSeparator ,
address.endSeparator 'nl'</i>
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhavesh,
Hope you are doing good . nice to see you among the top 3 contributors .
I had tried that 2 , doesnt work
you get the same error
Sender Adapter v1014 for Party '', Service 'filetofile_bs':
Configured at 05:44:14 2006-07-19
Last message processing started 05:44:54 2006-07-19, Error: Conversion of complete file content to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 1 according to structure 'data':java.lang.Exception: ERROR in configuration: more elements in file csv structure than field names specified!
last retry interval started 05:44:54 2006-07-19
length 10,000 secs
Any clues bhavesh
Hi Amit,
In you data strcutre you have just two parameters and in the file you are giving has 5 values.
Your error is self explanatory:
<i>ERROR in configuration: more elements in file csv structure than field names specified!</i>
Regards
Vijaya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mam if you look at my XML
<?xml version="1.0" encoding="UTF-8"?>
<ns:file_sender_mt xmlns:ns="urn:filetofiledemo">
<recordset>
<data>
<name />
<city />
<age />
</data>
<adress>
<fnaame />
<lanme />
</adress>
</recordset>
</ns:file_sender_mt>
I have 5 paramaters
name ,city ,age , fnaame , lname
and i am pasing those 5
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.