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

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
Forteen Stars TRF
Forteen 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

All Replies
Forteen Stars TRF
Forteen 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
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.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

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