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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to wait for file to be unlocked

Hi,
I have a problem in one of my jobs where I unarchive a zip file. This zip file is copied to our server which is then unzipped with a scheduled job that runs every 1 hour.
However when the file is still being copied when my job is scheduled, the file is still locked so the job crashes on my tFileUnarchive component.
Is it possible to handle this situation and add a wait for the file to be unlocked, so my job won't crash but wait for the copy of the file to be completed?
Regards,
Mario
Labels (2)
3 Replies
Anonymous
Not applicable
Author

hi,
have a look at the component "tWaitforfile".
it could help you
regards
laurent
Anonymous
Not applicable
Author

kzone,
This component checks a directory. Must this component be used instead of the tFilelist?
Does this component work the same? Lists every file in the folder and for locked files it will wait until unlocked?
Regards
Anonymous
Not applicable
Author

yes this component will wait for file until unlocked. for that you to have activate "Wait for file to be released " in advance propertiese of tWaitForFile component.
No you can not use as replacement of tFileList. After tWaitForFile you have to put the tFileList.