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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] How to use tFTPFileExist

Can you please attach sample image on how to use tFTPFileexist?
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi 
tFTPFileExist is used to check if a file exists or not on the FTP server, the return result is stored in a global variable and you can get it via:
(Boolean)globalMap.get("tFTPFileExist_1_EXISTS")

For example:
tFTPFileExist
   |
onsubjobok
   |
tJava
on tJava:
boolean result=(boolean)globalMap.get("tFTPFileExist_1_EXISTS");
if(result==true){
System.out.println("the file exists!");
}else{
System.out.println("the file does not exist!");
}

BR
Shong

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi 
tFTPFileExist is used to check if a file exists or not on the FTP server, the return result is stored in a global variable and you can get it via:
(Boolean)globalMap.get("tFTPFileExist_1_EXISTS")

For example:
tFTPFileExist
   |
onsubjobok
   |
tJava
on tJava:
boolean result=(boolean)globalMap.get("tFTPFileExist_1_EXISTS");
if(result==true){
System.out.println("the file exists!");
}else{
System.out.println("the file does not exist!");
}

BR
Shong
Anonymous
Not applicable
Author

Thank you for this one.