Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In

Quick Launch

Average Rating:

facebook Twitter
Email
Print Bookmark Alert me when this article is updated

Feedback

Is it possible to fail a command task when a command or script fails within the command task?
Answer
No, not currently.  The workflow cannot directly access this task output data, Therefore you cannot directly fail the command task, but you can fail the corresponding workflow.

By default, the Data Integration Service continues to run subsequent objects in a workflow after a task fails. To stop running subsequent workflow objects after a task fails, use a conditional sequence flow that checks if the command task fails.  The command task returns an 'Is Successful' output containing true if the task ran successfully, or it contains false if the task failed. 

Create a boolean workflow variable that captures the 'Is Successful' output returned by the Command task. Then create an expression in the outgoing conditional sequence flow that checks if the variable value is false, below is an example variable:

$var:MappingTaskSuccessful = false

If the Command task fails, the expression evaluates to false and the Data Integration Service stops running any subsequent workflow objects.​

More Information

Applies To
Product: Big Data Management; Data Quality
Problem Type: Configuration
User Type: Developer
Project Phase: Configure
Product Version: Data Quality
Database:
Operating System:
Other Software:

Reference

Attachments

Last Modified Date:8/20/2019 4:43 PMID:578491
People who viewed this also viewed

Feedback

Did this KB document help you?



What can we do to improve this information (2000 or fewer characters)