on 01-10-2011 5:19 PM
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
Hi,
In the Sender File channel, under Processing tab try selecting "Skip Empty Files" for Empty-File Handling.
Regards,
Aravind
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can any one throw some light on this issue, still i am facing this issue..
Thanks,
sai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i cannot change the output occurence reason being when i change the occurence in message mapping using signature tab the structure is getting chagned but i need to ignore the blank file.
can u suggest some thing which ignores the empty file.. actually when i see the empty file size i found it with some 150 bytes, i think the spaces are getting populated in the empty file
so how could such files should be ignored.
Thanks,
--sai
It sounds strange that the empty message handling doesn't seem to work (probably there is a empty line in there). But in the receiver determination you can't put a check whether any of the first fields has content in it (if not, just dump it in some trash directory)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.