[resolved] tMysqlInput ignore error

Highlighted
Two Stars

[resolved] tMysqlInput ignore error

hi,
have a job that has to iterate a set of records and feed it to tMysqlInput component. I want to set it up in a way that even if tMysqlInput encounters an error, it will proceed to the next iteration.
tMysqlInput_1 -> IterateEachRecord ->tMysqlInput_2 -> tMysqOutput_1
Please help me on how to do this.

thank you so much!
-Chim


Accepted Solutions
Highlighted
Community Manager

Re: [resolved] tMysqlInput ignore error

You need to design the jobs like this:
main job:
tmysqlinput1--iterate--tRunJob

tRunJob: call the child job, and pass the current record to child job, refer to this KB article to learn how to pass data from main job to child job with context variables, uncheck the 'die on error' option to make the main job continue to execute even though the child encounters an error.

child job:
tMysqlInput_2 -> tMysqOutput_1


Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post


All Replies
Highlighted
Community Manager

Re: [resolved] tMysqlInput ignore error

You need to design the jobs like this:
main job:
tmysqlinput1--iterate--tRunJob

tRunJob: call the child job, and pass the current record to child job, refer to this KB article to learn how to pass data from main job to child job with context variables, uncheck the 'die on error' option to make the main job continue to execute even though the child encounters an error.

child job:
tMysqlInput_2 -> tMysqOutput_1


Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post

Highlighted
Two Stars

Re: [resolved] tMysqlInput ignore error

great - thanks!

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog