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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
DrGenious
Creator
Creator

tdie return to the beggining

Hello,

I want when something is rejected to be added on the list but after that I want tWaitForFile to still searching for files. I dont want when something has been rejected force the job to end. Is there any way with tDie or another component to loop always the directory for tWaitForFile? Thanks a lot.0683p000009M9EA.png

Labels (2)
5 Replies
Anonymous
Not applicable

Hi '
I think you need move your processing to child job.
main job:
tWaitForFile--iterate--tRunJob

on tRunJob: call the child job, uncheck the 'die on error' box.

child job:
tFileInputDelimited---onComponent....
--reject--tDie
..other components---

Let me know if it works.

Regards
Shong
DrGenious
Creator
Creator
Author

Hello, 

Can you explain me with more details the components of the child job ? Thank you

Anonymous
Not applicable

the child job contains all the components besides tWaitForFile component that are moved to main job, like you showed in your first post.
DrGenious
Creator
Creator
Author

How I will point the fileinputdelimited from child job to take the value from twaitfile on parent's job? 

Anonymous
Not applicable

Take a look at this article, it shows how to pass the value from parent job to child job using context variable.
https://community.talend.com/t5/Design-and-Development/Passing-a-value-from-a-parent-Job-to-a-child-...