In order to understand ftp sessions I tried to build the following:
- input is a csv file
- this gets converted to an XML file
- which then is transferred by FTP.
My first try job does result in a file on the configured server with the configured name, but it is empty (0 bytes),
although the XML file has the expected contents and the job mentions 5 rows being sent to the tFtpPut component.
In the attachment I have the job configuration and its output. It shows the empty ftp put result in a terminal on the target machine.
Do I have to include another component in order to close the file, or is my solution wrong in another sense?
thanks in advance, Ruud
Solved! Go to Solution.
thank you very much. I knew I must have overlooked some detail.
A bit strange though the ftp put does some action (creating an empty file). I am going to try your suggestion right away.
Based on your job design, the reason is that the tFtpPut starts at the same time as the subjob and because at this time the XML file is empty, an empty file is transfered.
If you wait for the end of the subjob where you write in the XML file (that's what you've tried with success), the tFtpPut starts after the file has been completed.