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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
sekhar546
Contributor
Contributor

twaitforfile to fetch multiple (four) files

I have four files in a certain location and I need to create a job such that it should run only if there are four expected files. I know I can use twaitforfile four times, but I believe it's redundant process. All the files will have a common naming format with date and time in the name etc. Is there a different solution other than using multiple twaitforfile components?

Labels (4)
1 Reply
Anonymous
Not applicable

Maybe you can try tFileList to iterate all the files? There are several pre-defined global variables that can be used to determine if it satisfies the condition to continue or not, use runIf connector to trigger next processing.

These global variables includes
((Integer)globalMap.get("tFileList_1_NB_FILE"))
// counts the number of files are found.
((String)globalMap.get("tFileList_1_CURRENT_FILE"))
// the current file name

Regards
Shong