One Star

Exception in tJavaRow stopping the tFieList iterate

I am using tFileList->Iterate->tFileFDelimited->tJavaRow->tMap->
When I get exception in tJavaRow, i am handing excepion with tLogCatcher and onComponetError
But, when an exception occcurs in tJavaRow, it is stopping the tFileList->iterate
I am attaching the screenshot
How do i prevent the loop to stop?
2 REPLIES
Community Manager

Re: Exception in tJavaRow stopping the tFieList iterate

Hi
If you want the job continue to process next file even there is an exception, you need to redesign the job as:
father job:
tFileList->Iterate->tRunJob
child job:
tFileFDelimited->tJavaRow->tMap->
on tRunJob: call the child job, uncheck the box 'die on error', pass the current file path to child job using context variable, see http://www.talendforge.org/forum/viewtopic.php?id=1654
Let us know if you still have any troubles!
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Exception in tJavaRow stopping the tFieList iterate

Hi Shong
It is working now
Thank you very much
But, I am not able to catch the exception in the child job in the parent
I tried tLogCatcher and onComponentError. it is not working.
How do I catch the exception from tRunJob?
Thank You