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.