Table of Contents

Search

  1. Preface
  2. Workflows
  3. Workflow Variables
  4. Workflow Parameters
  5. Cluster Tasks
  6. Command Task
  7. Human Task
  8. Mapping Task
  9. Notification Task
  10. Gateways
  11. Workflow Recovery
  12. Workflow Administration

Developer Workflow Guide

Developer Workflow Guide

Troubleshooting Command Tasks

Troubleshooting Command Tasks

The solution to the following situation might help you troubleshoot Command tasks.
The command run by a Command task was unsuccessful, but the Data Integration Service continues running the next object in the workflow.
A Command task can succeed even if the command is unsuccessful or if you provide a working directory that is not valid. The Is Successful general output indicates whether the Command task ran successfully. The Exit Code task output indicates whether the command ran successfully. You can use a conditional sequence flow to check if both the Command task succeeded and if the command returned an exit code of 0.
For example, create a boolean workflow variable that captures the Is Successful output returned by the Command task. Create an integer workflow variable that captures the exit code returned by the command. Create the following expression in the outgoing conditional sequence flow from the Command task:
$var:CommandTaskSuccessful = true AND $var:CommandExitCode = 0
The Data Integration Service runs the next task if the previous Command task ran successfully and if the command returned an exit code of 0.

0 COMMENTS

We’d like to hear from you!