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: 
Haresh
Contributor
Contributor

How to check if the upload to ftp was successful using tftpput global variables

Hi,

I am looking to find out how to track or check the status if the upload to the FTP site from a local network was successful and i am using tftpput to accomplish this task.

Can i use any of the global variables to validate the status? and delete the file network drive(source) only and if the upload was successful without any failures at the ftp side.

Which of these variables would be appropriate and what would be the examples can you help?

GLOBAL VARIABLES:

System.out.println ("current status: "+((String)globalMap.get("tFTPPut_1_CURRENT_STATUS")));

System.out.println ("CURRENT FILE EXISTS: "+((Boolean)globalMap.get("tFTPPut_1_CURRENT_FILE_EXISTS")));

System.out.println ("ERROR: "+((String)globalMap.get("tFTPPut_1_ERROR_MESSAGE")));

System.out.println ("TRANSFER: "+((String)globalMap.get("tFTPPut_1_TRANSFER_MESSAGES")));

Sample job design:

tftpput---RUN IF-->status =? ---->tfiledelete

tftpput---RUN IF-->status=failure-->abort

Labels (7)
1 Reply
Anonymous
Not applicable

Hi

Check the 'Die on error' box and use onSubjobOK/OnSubjobError trigger, eg:

tftpput

---onsubjobOK--->tfiledelete

---onsubjobError-->do something

 

Regards

Shong