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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Problem with TFTPFileExist and runif

Hi,
I have a new problem, I try to know if they are files on the server and if Yes download else Message.
So I do that:
tFTPFileList_1 ---OncomponentOk---tFTPFileExist_1---Runif----tFTPGet---tMsgBox
                                                                          |
                                                                           ---Runif---tMSGBox


For tFTPFileList_1 I have add a mask only : zip, jpg, JPG, png
For tFTPFileExist_1 not sure of what I must type in: File Name
For Runif top : ((Integer)globalMap.get("tFTPFileExist_1_NB_FILE"))>0
For Runif bottom : ((Integer)globalMap.get("tFTPFileExist_1_NB_FILE"))<0


I have this messsage:

Exception in component tFTPFileExist_1
java.lang.NullPointerExeption
etc...


Now if I write that

For Runif top : ((Integer)globalMap.get("tFTPFileList_1_NB_FILE"))>0
For Runif bottom : ((Integer)globalMap.get("tFTPFileList_1_NB_FILE"))<0


The two runif are false and nothing happend.
How to resolve that little problem?

Regards
Burnside

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,
I have solved my problem...here the solution

tFTPFileList --OnSubjobOK--tJava--Runif----tFTPGet----tMsgBox
                              |--Runif----tMsgBox

I have just add in the tJava this code:
Integer Files = (Integer)globalMap.get("tFTPFileList_1_NB_FILE"));


And for the RunIf

For Runif top : Files>0
For Runif bottom : Files<=0

And everything run top 0683p000009MA9p.png
Regards
Burnside.

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi,
I have solved my problem...here the solution

tFTPFileList --OnSubjobOK--tJava--Runif----tFTPGet----tMsgBox
                              |--Runif----tMsgBox

I have just add in the tJava this code:
Integer Files = (Integer)globalMap.get("tFTPFileList_1_NB_FILE"));


And for the RunIf

For Runif top : Files>0
For Runif bottom : Files<=0

And everything run top 0683p000009MA9p.png
Regards
Burnside.
Anonymous
Not applicable
Author

Hi Burnside,

Thanks for posting that you resolved it by yourself.
You can mark this topic as resolved by clicking  a "Set this topic as resolved" link which is right underneath your initial post.
Best regards
Sabrina