Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
anut
Contributor
Contributor

tftpfileExist Component help

Hi everybody,
I try to create a job, if a file exist on ftp server then run the job else do not run the job. Though the file exists or not, it is running the ETL.
I tried the below to check the file A.TXT on the server path /home. In tFTPFileExist component, I have defined the connection and provided the Remote Directory location (as /home) and the filename (as A.TXT)
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!");
}

Though the file exists on FTP server, it says "the file does not exist!"
Please help !
Thanks,
Labels (3)
2 Replies
vapukov
Master II
Master II

Hi Anut,
and what the trouble?
MrAST-ONGE
Contributor
Contributor

The problem is when the folder is empty component fire an fatal error

tFTPFileExist_1 null

I know the ftp is empty and just want to check if is empty do not try to do more job and finish without error that means there is no job to do today.. may be tomorrow but not today to the component must be return no more file and that's it not an error is file not found is just beacause folder is empty

[FATAL]: No Is just empty .....

So why the component return a fatal error