Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.

Integration, Extension & APIs

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST

Who Me Too'd this topic

northerner
Partner - Contributor III
Partner - Contributor III

External Program Task - check for failure

I've created an External Program Task that runs a Windows batch file.  The batch file is hosted on the Qlik server. 

Current State

I can start the task in QMC.  This runs the batch file and the status of the task in QMC is 'Success'.

Desired State

I want to update the process so that the batch file can indicate to the QMC task whether it succeeded or failed.  This would be shown in QMC in the  state of the External Program Task.  It would also mean that I can have a task in QMC that is triggered when the External Program Task fails.

 

I have tried using: 

exit /b 1

 in the batch file to indicate an error but the status of the External Program Task is still success.

Is there a way for the batch file to exit in a way that changes the status of the External Program Task to Failed?

Labels (2)
Who Me Too'd this topic