Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
param123
Creator
Creator

tFileoutputdelimited temp file issue

Hi All,

we have a flow which continuously runs for some time and keep checking for incoming data and output file will be created only when there is data. I have enabled "Dont Generate Empty File" option to make sure it wont create an empty file. But Strangely during the process of execution even if there is no data, when the component is getting hit, it is touching an empty file deleting it with in fraction of seconds.

So question is.... is this the talend behaviour, which during the process will touch a file and see if data is present from previous component, and if no data it will immediately delete the file, since we have enabled "Dont generate empty file" option. all this happening in fraction of a second. but real problem we are facing is, there is another job which keeps looking for this file, and getting triggered due to the presence of this empty temp file and getting failed since the file is being deleted.

Please if anyone can explain the behaviour

Labels (3)
2 Replies
Anonymous
Not applicable

If this is a normal Talend job and not an ESB route, you may want to look at a different way of doing this. Talend job's are intended to be batch (start and finish) whereas routes are intended to run continually. However, that is likely not the issue here.

 

Unfortunately (fortunately?) there are so many permutations as to how this could be achieved, it is very difficult to identify your issue without seeing the job. Would you mind posting a couple of screenshots to show what the job is doing and how the relevant components are configured?

Prakhar1
Creator III
Creator III

I would suggest to check the row count from previous component and use the if trigger to check if it is not 0 then only go to tFileinput component , this will solve your issue here.