Continue job execution after a connection fail

Four Stars

Continue job execution after a connection fail

Hi all,
I have to build a job with the following scenario:
Connect in 15 different MYSQL databases, with different IP's, after connect on each one, it will retrive some informations from MySQL and store in a table inside an oracle database. The problem is sometimes the origin (mysql database) can be offline and if this situation happens I need that the kob continues the execution with te other databases but I don't know how to do that. If the connection is successfull retrieve data from mysql and store in oracle table but if the connection failled, go to the next myql database and continue the job. And i have to add this exception for every mysql connection attempt. How can I do that? Using a run if? But I don't know how to implement that in the job. A picture of the job is attached.

 

Ps: Im using talend open studio (free version).

 

please, can someone help me with this? Thanks in advance.


Accepted Solutions
Ten Stars

Re: Continue job execution after a connection fail

first of all take a closer look on the documentation and :
1 - OnComponentError and Ok

2 - OnSubJobError and Ok

 

Next use tMySQL<input> right mouse: based on 1 or 2 (mentioned above) you could start a different branch in your current job flow. look at the pictures.
And finally what @fdenis suggest also use a tlogCatcher (only need it once), this one you use to process and check wether you need re-run your job.

 

logErrorMysql.png

 


All Replies
Twelve Stars

Re: Continue job execution after a connection fail

your solution is tLogCatcher.
reply if you need more help.

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Ten Stars

Re: Continue job execution after a connection fail

first of all take a closer look on the documentation and :
1 - OnComponentError and Ok

2 - OnSubJobError and Ok

 

Next use tMySQL<input> right mouse: based on 1 or 2 (mentioned above) you could start a different branch in your current job flow. look at the pictures.
And finally what @fdenis suggest also use a tlogCatcher (only need it once), this one you use to process and check wether you need re-run your job.

 

logErrorMysql.png

 

Four Stars

Re: Continue job execution after a connection fail

Hi Dijke,

 

Thank you so much for your help.

With your explanation I was able to configure the job and it was executed correctly.

 

Thanls a lot!

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now