DocumentationWorkflowsLogic and data
Stop and Error node
Abort the run immediately with a custom error message, so a bad branch never silently writes or sends. Learn how to configure it, map inputs and outputs, run a test and resolve common errors.
7 min readUpdated
What this node does
Abort the run immediately with a custom error message, so a bad branch never silently writes or sends.
Use Stop and Error as a clearly defined step in an anymize workflow.
- Processes one input.
- Ends the connected path.
- Runs as a regular step in the flow.
Set up the node
- 01Open a workflow and add Stop and Error from the node catalog.
- 02Complete the required fields and map values from previous steps.
- 03Run the node with a small test record and inspect its output.
- 04Connect the successful output and activate the workflow after an end-to-end test.
Operations and modes
Stop and Error has one focused purpose. Its available settings appear when you select the node.
Settings
| Field | Meaning | Area |
|---|---|---|
| Error message | This message shows up in the run panel as the error reason. Variables like {{ $json.reason }} are allowed. | Standard |
Inputs and outputs
| Input | Meaning | Type |
|---|---|---|
| Standard | Receives the complete result from the previous step. | JSON |
| Output | Meaning | Type |
|---|---|---|
| Standard | Ends this path without another output. | JSON |
Example and test run
Test-run example: begin with a small, recognizable record. Inspect the output and only map fields that are present there.
Test-run example
{
"input": "value"
}Access and security
Before activation, review which data enters this step and what its output contains.
Keys and credentials belong in Workflow Secrets or your connected accounts. Never paste them as plain text into workflow fields, test data or descriptions.
Troubleshooting
- No output: inspect the latest run and confirm that the previous node returned the expected fields.
- Empty variable: open the previous step output and use a field name from the real test data.