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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
java.io.FileNotFoundException: D:\Temp\TempODS\10429_ODS.csv (The process cannot access the file because it is being used by another process)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at org.talend.fileprocess.TOSDelimitedReader.<init>(TOSDelimitedReader.java:76)
at org.talend.fileprocess.FileInputDelimited.<init>(FileInputDelimited.java:83)
at pdw_data_checking_4_test.pdw_processsarchem__master_0_1.pDW_ProcessSARChem__Master.tWaitForFile_1Process(pDW_ProcessSARChem__Master.java:3341)
at pdw_data_checking_4_test.pdw_processsarchem__master_0_1.pDW_ProcessSARChem__Master$1.run(pDW_ProcessSARChem__Master.java:4414)

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.
Labels (3)
2 Replies
amaumont
Contributor III
Contributor III

Close this file from Excel or other locking application and it should work.
Anonymous
Not applicable
Author

It was never opened by any application. It was in the process to be copied to the folder. 0683p000009MA9p.png