One Star mpa
One Star

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
3 REPLIES
Seventeen Stars

Re: How to wait for file to be unlocked

hi,
have a look at the component "tWaitforfile".
it could help you
regards
laurent
One Star mpa
One Star

Re: How to wait for file to be unlocked

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
Five Stars

Re: How to wait for file to be unlocked

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.