Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
This is my first project in Talend Open Studio.
What I'm trying to do:
This all works, except for moving the file from PROCESSING to PROCESSED. by tFileCopy.
Should I use another tWaitForFile to wait for the presence of the mapped XML file before trying to move/delete the original CSV file with tFileCopy? Or how can I be sure that the CSV file is not in use anymore by an earlier step?
Thanks!
Aha, I think I've found it: changed the trigger between tAdvancedFileOutputXML and tFileCopy to "OnComponentOk", and that seems to work. I guess the file move now waits until the XML has been written completely.
This seems to work.
Hello,
Yes, you are right. As tFileCopy component can be used as a standalone component, onsubjobOK connection type will be better based on your use case. In this way, it will start only when the previous subjob completely finishes.
Best regards
Sabrina