cancel
Showing results for 
Search instead for 
Did you mean: 

File receiver- newline character between lines

Former Member
0 Kudos

Hi All,

I am doing a file scenario in which i need to create a file with following structure:

Head1 Head2 Head3

Item11 Item12 Item13

Item21 Item22 Item23

Item31 Item32 Item33

....

I am able to generate a file which is tab delimited however the very first line of "Item" is not coming on new line. The file that i am getting is as follows:

Head1 Head2 Head3 Item11 Item12 Item13

Item21 Item22 Item23

Item31 Item32 Item33

....

I need a new line between Header and Item. For rest all items lines I am getting a new line.

In my file receiver adaptor in Content Conversion I have made following settings:

HEADER.fieldSeparator = '0x09'

ITEM.fieldSeparator = '0x09'

I tried with following settings as well but i am not getting newline between Header and Item.

HEADER.endSeparator = 'nl'

ITEM.fieldSeparator = 'nl'

Can anybody plz suggest where i am going wrong? Or is there anything else i should do?

Thanks,

Atul

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi All,

I also tried with

ITEM.endSeparator = 'nl' .

Thanks,

Atul

nisarkhan_n
Active Contributor
0 Kudos

Reconfirm this is your receiver file adapter configuration

HEADER.fieldSeparator = '0x09'

ITEM.fieldSeparator = '0x09'

ITEM.endSeparator = 'nl'

HEADER.endSeparator = 'nl'

if this is the one then you should get the desrired output......

Former Member
0 Kudos

Hi Nisar,

Thanks for ur reply. I tried with the combination you mentioned but i am not sure why it is not working? Is there any prerequisites for this?

I think 'nl' is default value for endSeparator as even if i removed the two parameters i am getting same output.

Thanks,

Atul