Talend job (tSystem component) not failing even Powershell script failed

Highlighted
Four Stars

Talend job (tSystem component) not failing even Powershell script failed

Hi,

 

I m executing powershell script from tSystem component. 

Using Powershell script , i am connecting to Azure and doing some operation.

 

Even if there is any failure in Powershell script (eg: due to Azure host name is wrong or any azure command failed) , talend job or tSystem component is not failing, its showing job is succeeded.

 

Could some throw some idea here on how can i fail the Talend job / tSystem component if there is any failure in Powershell script.

 

Thanks.

 


Accepted Solutions
Highlighted
Sixteen Stars
Sixteen Stars

Re: Talend job (tSystem component) not failing even Powershell script failed

Did you try to catch the script output into a global variable?

TRF

View solution in original post


All Replies
Highlighted
Sixteen Stars
Sixteen Stars

Re: Talend job (tSystem component) not failing even Powershell script failed

Did you try to catch the script output into a global variable?

TRF

View solution in original post

Highlighted
Four Stars

Re: Talend job (tSystem component) not failing even Powershell script failed

Thanks TRF.

 

Its working as expected.

Doing like below:

Catch the output into Global variable and using tDie component if there are any Error Messages.

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 2

Part 2 of a series on Context Variables

Blog

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