cancel
Showing results for 
Search instead for 
Did you mean: 

File Adapter inserting New Line

Former Member
0 Kudos

All -

I'm stuck on this one. Would anyone know why the File adapter would insert a New Line at the beginning of my file? The file is output correctly with the exception of a blank line at the very beginning of the file.

Are there any conversion parameters I need to supply for the receiver file adapter? I currently have:

data.endSeparator = 'nl'

data.fieldFixedLenths = 30,30,15,3

data.fieldNames = F1,F2,F3,F4

data.fixedLengthTooShortHandling = Cut

Thanks,

Dave

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Ok, found the issue!

The File Adapter is configured as FTP and when the file is FTP'd to the target directory and viewed using Internet Explorer, a carriage return/line feed is added to the beginnig of the file. When I FTP the file from the remote directory to my local directory and then view the file, it's fine. Not sure why Internet Explorer changes the formatting of the file.

Bottom line - the remote file is fine.

Cheers,

Dave

Former Member
0 Kudos

Hmmmm.. seems intresting.

Check the all parameter in your CC again.

Refresh the cache and then try.

Former Member
0 Kudos

Hi David,

Is it possible that you may be sending an empty record at the beginning of your XML?

Can you attached the XML message as it gets to the File Communication Channel?

Kind regards,

Yaghya