Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
rgros
Contributor
Contributor

ftp put result empty; why?

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

Labels (4)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

You need to connect tFtpPut to your tFileInputDelimited using an onSubjobOk trigger.

This way, the ftp transfer will start after the XML will be completed, not when the subjob where it appears starts.

View solution in original post

5 Replies
TRF
Champion II
Champion II

You need to connect tFtpPut to your tFileInputDelimited using an onSubjobOk trigger.

This way, the ftp transfer will start after the XML will be completed, not when the subjob where it appears starts.

rgros
Contributor
Contributor
Author

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.

 

Ruud

 

rgros
Contributor
Contributor
Author

This was indeed the way to go.

In the attachment a screen shot of a working version of the job


talendftp.png
TRF
Champion II
Champion II

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. 

rgros
Contributor
Contributor
Author

thanks for the explantion. That makes sense.