cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic file name in receiver - empty line problem with content conversion

0 Kudos

Hi,

I do a variable substitution from a filename node in my xml structure. Because I don't want to have the the filename in my flatfile i supress the output with the conversion parameters:

filename.fixedLengthTooShortHandling = Cut

filename.fieldFixedLengths = 0

It's working but: the adapter is puting an empty line at the end of the file. If I even put the filename node at the top of the xml struture it generates the empty line at the top of the flatfile.

Anyone has an idea? is there an other way to set the filename or how can I supress this empty line( I have to) ?

Regrads

J.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try

filename.addHeaderLine = 0

0 Kudos

Hi Barry,

doesn't work.

Regards

J.

sridharreddy_kondam
Active Contributor
0 Kudos

Hi Jorg,

Can you try by adding this also

filename.endSeparator = '0'

It should work....

regards,

sridhar

Former Member
0 Kudos

Jorg,

Actually speaking we cannot get rid of this with XI. You have to write a OS script to remove this.

Else

you add one more parameter as .endSeparator as backspace ie., 0x08. It will definitely remove the line but I think it is putting a square box at the end of previous line. Please check by giving this and let us know the updates.

Regards,

---Satish

0 Kudos

Hi sridhar,

endSeparator = '0' works with fixed filed length/Cut.

Thanks a lot

Regards

J.

Former Member
0 Kudos

Hi jorg

we are also facing the same problem please provide your FCC parameters,

wating for your response,

thanks in advance

siva

Former Member
0 Kudos

Hi satish reddy,

could u please help how to write OS script to avoid this "Dynamic file name in receiver - empty line problem with content conversion"

thanks in advance

siva

Answers (2)

Answers (2)

Former Member
0 Kudos

Jörg,

Check this blog. It should solve your problem.

/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions

Regards,

Ravi

henrique_pinto
Active Contributor
0 Kudos

Sure is.

If your filename is filled in the payload in a mapping, you can use DynamicConfiguration instead. Just search for it.

Then you won't need to change the payload at all.

Regards,

Henrique.