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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
mra802003
Contributor III
Contributor III

How to implement tinfinite in combination with Run if

Hi,

 

I am trying to implement a scenario as in tinfiniteloop --> tFilelist --> Run if (file name contains "cs") ---> Establish FTP connection ---> tFTPput ---> Archive File (tFilecopy).

The requirement is to design a filewatcher as "twaitforfile" doesn't run on UNIX. I tried to introduce even tForEach iteration as "Run if" condition is throwing error but getting error all the time.

 

Any suggestions on how to implement this?

 

Regards

Labels (1)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Hi,

Your design looks ok except a missing tSleep between each iteration.

For the "Run if" condition, did you try this:

((String)globalMap.get("tFileList_1_CURRENT_FILE")).contains("cs")

Hope this helps.

View solution in original post

3 Replies
TRF
Champion II
Champion II

Hi,

Your design looks ok except a missing tSleep between each iteration.

For the "Run if" condition, did you try this:

((String)globalMap.get("tFileList_1_CURRENT_FILE")).contains("cs")

Hope this helps.

mra802003
Contributor III
Contributor III
Author

Yes, I have added that condition check. 

Where shall I use the tSleep component? Is it after tFileList?

TRF
Champion II
Champion II

I suggest you to put it before the tFileList, else you'll wait between each file check.