How to Talend Integration, how to kill/break the current job with customized exception information?

Five Stars

How to Talend Integration, how to kill/break the current job with customized exception information?

Hi All Dears,

 

As my Subject, Talend Integration, how to kill/break the current job with customized exception information?

User needs that if no data coming in source (e.g. tFileInput...), then kill/break the current job with customized exception information.

Suggest that it's better we could have the "Option" on the similar "xxxInput" components, if "Empty/No Data" then "Generate the error", it will be very useful in some scenario.

Thank you.

 

Regards,

Peter.

Seven Stars

Re: How to Talend Integration, how to kill/break the current job with customized exception information?

Try putting a tFileRowCount in front of you tFileInput... then put an IF > 0 to your regular flow or an If == 0 for you execption flow

-----------------------------------------------------------------------------------------------------------
When you like my answer, please accept it as solution and send some kudos
Five Stars

Re: How to Talend Integration, how to kill/break the current job with customized exception information?

Thank you. Yes, I could use the method to get the file count, this is no problem, but my problem is that how to kill/break the current job with Customized Exception Information when "Empty", not make job failed simply (I could do one Trap, but can't get the correct Exception Info), I need the job failed with Customized Exception Information, thank you. Smiley Happy
Seven Stars

Re: How to Talend Integration, how to kill/break the current job with customized exception information?

I am not sure what you are exactly looking for, perhaps this helps:

 

1. use a tDie and customize the error message

2. Add a tLogCatcher to create an error flow

 

 

-----------------------------------------------------------------------------------------------------------
When you like my answer, please accept it as solution and send some kudos
Five Stars

Re: How to Talend Integration, how to kill/break the current job with customized exception information?

Yeah, thank you, the tDie could satisfy the Customize Exception Info, thank you.

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

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

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download