cancel
Showing results for 
Search instead for 
Did you mean: 

File Receiver cotent conversion

Former Member
0 Kudos

All,

we have an xml message of the following structure.

<target>

<data><name>j</name><title>manager</title></data>

<data><name>j2</name><title>manager2</title></data>

</target>

While we write the output flat file using content conversion. There is an empty line that is added on the top of the output text file. We have the following setting in the content conversion settings.

data.fieldFixedLengths 50,100

data.addHeaderLine 0

What might be the issue?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I think i figured out why this happening. not sure how to resolve this. Note the highlighted line in the following xml. This node occurs once in the entire message and is used as a variable substitution parameter for the name of the output file.

<target>

<b><filename>output08142007.txt</filename></b>

<data><name>j</name><title>manager</title></data>

<data><name>j2</name><title>manager2</title></data>

</target>

In the content conversion recordset structure - I have only given the <data> (since we dont need the filename inside the file). Due to the <filename> node, it is putting an empty line. If i remove the <filename> and hard code the value of theouput file in the comm channel, it writes the file without any empty lines.

Is there a way we can overcome this? or should we open an OSS ticket for this?

Thanks.

Former Member
0 Kudos

Hey

i dont think u need to raise an OSS note for this,please try the solution given in the following thread

https://forums.sdn.sap.com/click.jspa?searchID=4531996&messageID=3765017

its the exact same problem as yours,hope it helps

Thanx

Aamir suhail

Message was edited by:

Aamir Suhail