
When an automation fails, classify the failure before you change anything: a trigger that never arrived, a step that stopped with an error, a run that halted safely, and a run that finished with the wrong result are four different problems with four different fixes. This guide shows how to tell them apart, read the structured error, and catch silent failures that raise no alert.
First, stop repeated actions
If the workflow can send messages, publish posts, or change records, pause automatic retries while you investigate. Record the time, trigger input, execution ID, and returned error. Redact credentials and personal data before sharing logs with anyone.
A retry is safe only when you know what the previous attempt did. A timeout can occur after a destination accepted the change but before the caller received confirmation. Repeating the same action may create a second post or message.
Check the trigger
Did the starting event reach the workflow? Confirm the workflow is enabled, the schedule uses the intended timezone, and the connected source is the right account. For a webhook, verify the configured destination and whether the source recorded a delivery attempt.
If no execution exists, investigate the trigger before examining the AI prompt. If an execution exists, open that specific run. Do not diagnose from an unrelated successful run earlier in the day.
Inspect credentials and permissions
A connection can authenticate successfully while lacking permission for the requested action. Read access does not imply publishing access. Check the connected account, the exposed tools, and the action’s required capability. For WordPress, compare the actual saved post status with the requested one.
When a tool disappears, refresh its definitions according to the client’s documented process. Avoid creating multiple duplicate connections before understanding whether the problem is discovery, authorization, or the server itself.
Validate the input at each boundary
| Symptom | Check | Possible repair |
|---|---|---|
| Required field missing | Actual input keys and empty values | Validate before the action; route incomplete input to review |
| Wrong record updated | Record ID mapping | Use the verified destination ID, not a similar title |
| AI output cannot be read | Output shape and required fields | Require a clear format and validate it before use |
| Intermittent failure | Limits, service availability, and request size | Reduce load and follow documented retry behavior |
Inspect what was actually passed, not what the diagram suggests should have been passed. A renamed field can break an otherwise unchanged workflow.
Check the destination before declaring failure
Retrieve the record by its returned identifier. Is it present, complete, and in the correct status? If the database record is correct but the public page looks old, inspect caching and the template. If no destination identifier was returned, search carefully for a matching action before retrying.
For our WordPress process, the read-first publishing guide separates connection checks, saved status, and rendered-page checks. Those are three distinct forms of evidence.
Add a failure route and document the repair
After fixing the problem, test the ordinary input and the case that failed. Add an alert with the workflow name, run identifier, and failed stage, keeping sensitive content out of the alert. Decide who owns the queue and when they inspect it.
n8n provides execution inspection and error workflows; its error-handling documentation describes an Error Trigger workflow for responding to execution failures. Other platforms have their own recovery mechanisms.
Write the cause, repair, and prevention in a short log. Your next step is to trace one failed execution from trigger to destination and identify the first boundary where the expected data disappears.
Classify the failure before you touch anything
A red or green status is not a diagnosis. Before you edit a setting, reconnect an account, or rerun the workflow, write down which of these five cases matches what you see. Each one points at a different fix, and treating one like another is how a small fault becomes duplicate messages, double charges, or a deleted record.
| Failure class | What you see | First action |
|---|---|---|
| Missing trigger | No execution exists for the expected event | Check the trigger is enabled, the filter matches, and it points at the right account |
| Errored run | A step stopped with an error code | Open the run history and read the failing step first |
| Safely halted | The run stopped because a lookup found nothing | Treat it as a missing record, not a crash; do not edit later steps |
| Timeout | The caller stopped waiting, though the service may have finished | Check whether the action already happened before retrying |
| Successful but wrong | Every step ran, but the result is wrong | Check the AI tool choice and extracted fields, not the connections |
The distinction between an errored run and a safely halted run matters most. Zapier documents the same split: an errored run stopped on a fault, while a safely halted run stopped as configured, often because a search found no result. Changing later steps will not create the missing record, so a halted run needs data, not a repair.
Read the structured error, not the message text
Error messages change wording between versions; error codes stay stable. OpenAI’s Agents API guidance recommends checking the error code rather than matching message text, because the wording can change while the code keeps its meaning. Find the code in the run history or execution log, on the failing step itself, and record it with the step name and the time before you change anything.
Learn the code families so the first read tells you where to look. Authentication codes point at expired tokens or the wrong scope. Validation codes point at a missing required field or a value of the wrong type. A 429 code means a rate limit, not a broken workflow. A not-found code usually means the record, channel, or file was deleted or renamed. A vague “server error” with no code is only a symptom: note the step, the time, and the input, then look at the service status and the step output before deciding it is transient.
When a workflow uses an AI step, require a clear output format and validate it before the next action, as our guide to structured AI output explains. A step that returns unparseable text produces a validation error that looks like a platform fault but is really a format fault.
Catch the failures that never raise an error
Some failures produce no error to catch. A run can finish green with the wrong result, or never start at all, and the first person to notice is a customer. Do not call an automation working because the last run was green. Check the result in the place it should appear, watch for runs that never start, and name who acts when a check fails. Google’s Site Reliability Engineering guidance names four golden signals for a user-facing system — latency, traffic, errors, and saturation — and a green run covers only one of them.
| Check | Question to answer |
|---|---|
| Input received | Did the expected event or record reach the process? |
| Processing done | Did the needed steps actually run? |
| Result correct | Does the result meet the agreed criteria? |
| Result in place | Is it in the right destination, under the right record? |
| Who acts | Is someone named to act when a check fails? |
Error alerts have a blind spot worth knowing. n8n documents that an error workflow runs when an execution fails, but some error details are missing when the fault is in the trigger node, because the workflow never executes. A run that never started can slip past error alerts entirely, so check the trigger’s own history, not only the error queue.
Access also expires on its own. Google documents that a refresh token can stop working when the user revokes the app’s access, when it has not been used for six months, or when an admin restricts a service. A workflow that ran fine for months can stop with no change on your side, which is why credentials belong on the checklist, not only in the setup notes. Our guide to safe workflow retries covers how to retry without creating duplicates.
Retry safely, or stop retrying
Retries are not free. Amazon’s Builders’ Library notes that when errors are caused by load, retries can be ineffective when every client retries at the same time; the remedy is to add jitter, cap the backoff, and limit the number of attempts. A retry storm can turn a brief overload into a longer outage, so a retry policy is part of the fix, not an afterthought.
Retry only transient errors: timeouts, rate limits, and brief service outages. Never loop retries on a persistent fault — a bad credential, a missing field, or a wrong schema will fail the same way every time, and each attempt can create another duplicate. Fix the value, the permission, or the schema instead, and do not retry until the cause is addressed.
Make every retry safe before you enable it. Use idempotent actions, so repeating a request cannot create a second record, send a second message, or charge twice. When the same run fails three times with the same code, stop retrying and route the case to a person with the error record attached. Count exceptions as part of the workflow’s results, as our guide to measuring automation results explains, so a workflow that fails quietly cannot look successful.
Frequently asked questions
Should I reconnect everything first?
No. Preserve evidence and isolate the failing stage. Reconnecting can hide the cause and introduce additional changes.
Can I retry after a timeout?
First check whether the destination accepted the action. Use a duplicate-prevention identifier or other documented protection where available.
Why did the test work but the live workflow fail?
Live inputs may be larger, missing fields, duplicated, or outside the test account’s permissions. Compare the exact inputs and credentials, not just the diagram.
Should I retry a failed automation immediately?
Only for a transient error such as a timeout or a rate limit, and only after checking whether the action already happened. For a persistent error, fix the cause first; retrying a payment or a record-creation step without a duplicate check can create a second charge or record.
Why did my automation stop working months after launch?
Access expires on its own. Google documents that a refresh token can stop working when the user revokes access, when it has not been used for six months, or when an admin restricts a service. Check credentials, the trigger, and renamed or deleted records before assuming the workflow itself broke.
What does “safely halted” mean — is that an error?
No. The workflow stopped as configured, usually because a lookup found no matching record. It is a missing-data problem, not a crash, and editing later steps will not create the record. Find or create the missing record, then rerun.
How do I know an automation is actually working, not just running?
Answer five checks: the input arrived, the steps ran, the result is correct, the result is in the right destination, and someone is named to act when a check fails. A green run status proves only that the steps executed.
Was this guide helpful?
Tell us what needs improving →
Your selection stays on this page. To send feedback to the publication, use our contact form.
About this publication
From OptimaFlow AI
Practical guides to AI, automation, and better everyday workflows. We use illustrative examples and original diagrams, with AI-assisted writing and illustrations.
Read our editorial approach →About OptimaFlow AI