Build automations

Workflow error handling

Start with the failed Step and its actual input in Run history. A provider timeout, missing permission, invalid mapping, and an ordinary nonmatching Filter require different responses. Fix the cause before choosing a recovery action.

Separate routing from failure

What happenedHow to investigate
A Filter stopped or a Path did not matchThis is an ordinary routing outcome. Its downstream Steps can be skipped without a provider failure.
Stage: Source trigger failedThe Source failed before emitting input. Workflow Steps did not start; inspect Trigger access and delivery.
An Action or processing Step failedInspect its mapped input, provider response or runtime error, attempts, and outgoing routes.
The run is QueuedCheck whether it is waiting for a Delay or retry before starting another execution.

Open Run history in the sidebar, or More Workflow actions → Run history from the Workflow. Select the run, check Version and Attempts, and inspect the first failure. See Runs & errors for the available evidence and preview limits.

Retry handling comes before an Error route

Step fails
  • Retry when the failure is retryable and attempts remain.
  • Otherwise follow its connected Error route.
  • Without a matching Error route, mark the failure as unhandled.

Temporary provider or delivery failures can retry automatically. Invalid inputs, missing resources, or revoked account access usually need a fix instead. Provider Retry-After information is used when available within runtime limits.

The Workflow worker permits up to 10 queue retry decisions after the initial execution attempt for retryable failures. This limit does not promise that every provider error receives ten more calls. Check the run's current status and attempt evidence; repeated manual execution can overlap with work already retrying.

If queue delivery is exhausted, workflow_delivery_exhausted closes the affected run as Failed and closes unfinished Step records. Do not assume this infrastructure-level failure will execute a configured business recovery Action. The Limits, statuses, and errors reference describes the error contract.

Existing Error routes and advanced setup

FastHook's Workflow runtime supports an Error output with one connected error route per Step. Existing routes are drawn separately and labelled error on the canvas. A route can send an alert, record the failure, or perform a deliberate fallback.

The current canvas add-step flow follows the normal output. Its Step settings do not offer the former Input from → Output → Error selectors. To create or change an Error connection in an advanced graph, use a supported Workflow JSON import or the Workflow API, then review the resulting graph and mappings. See Import & export and the API reference. A normal Step added after an Action is not automatically its error handler.

Fallback in Paths is also different: it runs when no other Path matches, not when an Action inside a selected Path fails.

Map the error data

An Error route receives a normalized failure envelope instead of the failed Step's success output. Depending on the failure, it can include an error code, message, failed Step identity, attempt, response status, retryability, provider, and safe details.

Use the error branch's available fields in Insert data. Do not assume the failed Action produced its normal record ID or success body. Earlier successful outputs remain distinct from the error envelope.

Record enough context to find the run and affected business item. Avoid sending full customer payloads or credentials to an alert channel when a run reference and error summary are sufficient.

Understand the final run status

A connected Error route can handle a final Step failure and let the overall run succeed. The failed Step remains visible in history. Succeeded therefore means execution completed along its selected routes, not that every attempted provider call succeeded.

Without a handled Error route, that branch stops and the run ends as Failed. Other already selected sibling Paths can still execute. Inspect their results before retrying; a failure in one branch does not undo work in another.

A recovery Action can fail too. Check its input, account, and error rather than treating a configured handler as proof that an alert or compensation was delivered.

Design recovery for the business operation

  • Alert and stop that branch: send a concise failure summary for investigation. Keep it separate from the ordinary success processing.
  • Record partial completion: save the failed item and run reference when the process can tolerate partial results.
  • Compensate deliberately: use a separate Action to offset an earlier side effect only when the provider and business process support it. FastHook does not automatically roll back earlier Actions.
  • Use a provider fallback selectively: filter the error code or status before trying an alternative. A permission or validation error is not necessarily an outage.

Test recovery with a controlled failure and a suitable test destination. An Action test can make a real change even in a Draft. Auto-validate can also execute real Actions and AI calls; see Workflows.

Recover an existing failed run

After fixing settings or access, choose the recovery scope in Run history. Retry and continue on the original version resumes from the failed Step using its original settings. Continuing on the current version creates a new run from the failed Step and reuses earlier successful results. Run again starts from the recorded Trigger input with the current version and repeats Actions from the beginning.

The Workflow retries guide also covers Retry failed iteration for repairing one Loop item. Use Prevent duplicate Actions to configure stable IDs and Only new items before normal execution.

Before repeating a failed Action, inspect the provider for partial success. A timeout can occur after a row or message was created. Retrying can duplicate that effect, and repeating the whole run can also duplicate previously successful work.

For account failures, repair Connected accounts and review the affected resource selections. For low-level Connection delivery outside a Workflow, use Retries and replay; transport replay is a separate recovery operation.