cancel
Showing results for 
Search instead for 
Did you mean: 

File Content Conversion error

Former Member
0 Kudos

Hi ,

I am trying to implement file content conversion. The output file gets created but there is no data in it . When i try to open it , an error message is displayed saying 'XML document must have a top level element. Error processing resource ' .

The file which i have used as input file is as follows :

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_FILETRANSFER_SD xmlns:ns0="http://xitraining.com/file.transfer.sd">

<NAME>

<NAME1>SRESTHA</NAME1>

</NAME>

</ns0:MT_FILETRANSFER_SD>

The recordset structure name is NAME and i have specified the following atributes :

NAME.fieldSeparator - ,

NAME.fieldFixedLengths - 13

NAME.ignoreRecordsetName - 1

NAME.FieldFixedType - char

NAME.enclosureSignEscape - (

NAME.fieldNames - NAME1

Please help .

Thanx ,

Srestha

Accepted Solutions (0)

Answers (1)

Answers (1)

moorthy
Active Contributor
0 Kudos

Hi Srestha,

If your output as csv file, then no need of giving fixed field lengths.

So content conversion in the Receiver side will be

NAME.fieldSeparator - ,

NAME.fieldNames - NAME1

NAME.endSeparator -'nl'

To more-

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm

Hope this helps,

Regards,

Moorthy