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
| Field | Type | Required | Description |
|---|---|---|---|
| errorMessage | string | Yes | Human-readable error description. Supports template variables (e.g., Missing required field: {{filter_1.fieldName}}). |
| errorCode | string | No | Machine-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.
| Field | Type | Description |
|---|---|---|
| (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_FAILEDThe workflow immediately stops, and the execution log shows the error code VALIDATION_FAILED with the resolved message.