One Star

tWaitForFile - file locked

I run into a problem with the tWaitForFile component.
The component is starting the iteration when the file shows up in the file system but because the copy operation is still ongoing the file is locked.
When I get to the step to read the file I get an exception:
Exception in component tFileInputDelimited_1 D:\Temp\TempODS\10429_ODS.csv (The process cannot access the file because it is being used by another process)
at Method)
at<init>(Unknown Source)
at<init>(Unknown Source)
at org.talend.fileprocess.TOSDelimitedReader.<init>(
at org.talend.fileprocess.FileInputDelimited.<init>(
at pdw_data_checking_4_test.pdw_processsarchem__master_0_1.pDW_ProcessSARChem__Master.tWaitForFile_1Process(
at pdw_data_checking_4_test.pdw_processsarchem__master_0_1.pDW_ProcessSARChem__Master$

Anybody has a simple and elegant solution for this? Everything coming to my mind is adding a lot of additional code and is rather ugly.

Re: tWaitForFile - file locked

Close this file from Excel or other locking application and it should work.
One Star

Re: tWaitForFile - file locked

It was never opened by any application. It was in the process to be copied to the folder. Smiley Wink