Skip to Content
0
Former Member
Jan 10, 2011 at 05:19 PM

FileContent Conversion Error...

31 Views

Hi,

In a File to File scenario, I need to drop the flat file in the FTP server, Here when the data is not populated an empty structure will be created in such cases i need not drop an empty file in the FTP server.

so i have used Empty message handling in the processing tab of File adapter-- I have set the option to Ignore.

In the FCC, i dont require any field seperator.

My Structure is:

Header:

Field1 - Length 5 of type string

Field2 - Length 5 of type string

Field3 - Length 5 of type string

Field4 - Length 5 of type string

Output should look like:

ValueofField1ValueofField2ValueofField3ValueofField4

ForEg:

Header:

Field1 -- aa

Field2 -- bb

Field3 -- cc

Field4 -- dd

Output should look like:

aabbccdd

The FileContent converison which i used in my receiver File Adapter as follows:

Header.fieldFixedLengths --5,5,5,5

Header.fixedLengthTooShortHandling Ignore

Header.endSeparator 'nl'

so while i run the scenario during the contents with payload the file is getting generated successfully during handling empty files i am getting the blank file at the output directory. so can anyone suggest how to suppress this blank file

Thanks,

-- Sai