cancel
Showing results for 
Search instead for 
Did you mean: 

Add line feed characters at end of file using content conversion in file adapter

katie_doody2
Participant
0 Kudos

I have a vendor that would like me to add two line feeds at the end of a delimited text file. I have never been asked to this, is there any straight forward way through content conversion?

I have the line feeds at the record level in the first image but need to add two at the end -like the second imagr.

apu_das2
Active Contributor
0 Kudos

You mean to say 2 line feeds only at the end of last record of the file?

Accepted Solutions (1)

Accepted Solutions (1)

former_member216164
Participant

Hi Katie,

At the end of your xml structure, try creating a dummy parent with a field in it. repeat the parent two times and send empty values to the fields in it. Adjust content conversion accordingly. This would create 2 empty values at the end of flat file which have 2 line feeds.

This is indirect way. Try if it works.

Thanks & Regards,

Avinash B

Answers (1)

Answers (1)

apu_das2
Active Contributor
0 Kudos

Did you try with Record.endSeparator = 'nlnl' or '\n\n'

Thanks,

Apu

katie_doody2
Participant
0 Kudos

Yes, isn't that the end of each record? I was looking for the end of the file?