Sign In

Stop and Error

Immediately halt workflow execution and return a custom error message and machine-readable error code.

The Stop and Error node terminates the entire workflow execution when it is reached. Use it to abort workflows when a critical validation fails, a required resource is missing, or a business rule is violated.

Configuration

FieldTypeRequiredDescription
errorMessagestringYesHuman-readable error description. Supports template variables (e.g., Missing required field: {{filter_1.fieldName}}).
errorCodestringNoMachine-readable error code for programmatic handling. Defaults to WORKFLOW_STOPPED.

Output

This node does not produce a success output. When executed, it marks the workflow execution as failed with the configured error code and message. Downstream nodes are never reached.

FieldTypeDescription
(failure)--The workflow terminates with a failure containing the errorCode and resolved errorMessage.

Example

After a Filter node checks for required fields, route non-matching items to a Stop and Error node to halt the workflow with a descriptive message.

Error Message: Order validation failed: missing shipping address for order {{filter_1.orderId}}
Error Code: VALIDATION_FAILED

The workflow immediately stops, and the execution log shows the error code VALIDATION_FAILED with the resolved message.

On this page

Stop and Error | Buildorado