Skip to content
Valery

Module 4 · Lesson 6 of 6

Errors, logging and keeping automations alive

Error branches, retries, alerts, run logs, owners, monthly reviews, API changes and expiring connections.

9 min

Automations do not usually fail loudly. They fail quietly, on a Sunday, and nobody notices until a seller asks why no one followed up on last week's showings. A connected account expires, a website form gets a new field name, a vendor retires the model your AI step uses, or a monthly quota runs out on the 23rd. The workflow that ran perfectly at launch simply stops, or worse, keeps running and does the wrong thing.

Keeping automations alive is ordinary maintenance, like servicing a furnace. This lesson covers the four parts: error paths that catch problems, alerts that reach a person, run logs that explain what happened, and an owner with a monthly routine.

Why automations break

SymptomLikely causeFirst fix
Every run fails at the same app stepThe connection expired or was revokedReconnect the account; check who owns it
Runs succeed but fields are blankThe source changed a field name or formatRemap the field; add a check for blanks
Fails at busy times, works laterRate limit: too many requests too fastSlow down, add waits, retry with a delay
AI step errors after months of workingThe model was retired or renamedChoose a current model; rerun your test cases
Stops near month endPlan quota used up (tasks, credits, executions)Check usage; filter earlier; upgrade if needed
Duplicate messagesRetries or replays without a duplicate checkAdd an idempotency key (lesson 3)
Breaks after a staff member leavesConnections were tied to their personal accountUse a shared brokerage account for connections

Model providers retire older models on published dates, and automation vendors change their apps and interfaces several times a year. Assume something will change every month.

Error paths and retries

Key term
Error path

A branch that runs when a step fails, so the workflow can retry, take a safe fallback, or alert a person, instead of stopping silently.

Each tool handles errors a little differently, as of October 2026:

  • n8n lets each node retry on failure, and choose what happens on an error: stop the workflow, continue, or continue down a separate error output you can connect to other steps. A separate error workflow, starting with the Error Trigger node, can catch failures from many workflows and send one alert.
  • Make has error handlers you attach to a module (Rollback, Break, Resume, Commit and Ignore), each with a different recovery behaviour.
  • Zapier records every run in Zap history and can notify you of errors; check your plan for automatic replay of failed steps.
Key term
Transient and permanent errors

A transient error goes away on its own: a timeout, a busy server, a rate limit. A permanent error will not fix itself: a wrong password, a deleted record, a bad field.

Retry transient errors two or three times with a pause between tries. Do not retry permanent errors; alert a person. And be careful retrying any step that sends a message or creates a record, because a retry after a half-finished send is how clients get two copies. Put the duplicate check before the send.

An AI step with an error path
  1. 1. TriggerNew lead arrives
  2. 2. AIDraft the reply, retry twice on timeout
  3. 3. CheckDid the step succeed and return valid text?
  4. 4. HumanSuccess, so the draft goes for approval
  5. 5. ActionFailure, so alert the owner with the run link
  6. 6. StoreLog the outcome either way

The lead is never dropped: success goes to approval, failure goes to a person.

Alerts that get read

An alert is only useful if the right person sees it and can act. Good alerts:

  • Go to the workflow's owner and backup, in a channel they watch (email or a dedicated team channel).
  • Say which workflow, which step, what error, and link to the run.
  • Avoid copying client details into the alert. Use a lead ID and the link; the details stay in the system.
  • Are rare. If an alert fires every day for something harmless, people stop reading all of them. Fix the cause or tune the alert.

Run logs

Every platform keeps a run history: n8n's Executions list, Zapier's Zap history, Make's scenario history. Learn where it is in your tool on day one. For important workflows, also write your own short log row per run, to a sheet or the CRM:

  • Run ID and start time (with time zone).
  • Trigger and input ID (lead ID, listing ID), not full personal details.
  • Outcome: sent, waiting for approval, declined, failed.
  • Approver and time, if any.
  • Error message, if any.

Agree a retention period with your broker of record. Platform histories are often kept only for a limited time on lower plans, which is another reason to keep your own summary log.

Expiring connections

Most app connections use OAuth, the "Sign in with Google" or "Allow access" screen. They feel permanent but are not. Google's documentation lists several reasons a refresh token, the saved permission an automation uses, stops working: the user revokes access, the token goes unused for six months, the user changes their password while the token includes Gmail access, or the account hits a limit on live tokens. If you self-host n8n and create your own Google Cloud app, note that apps left in "Testing" status get tokens that expire after seven days, which is a common reason a new workflow dies after a week.

Two habits prevent most of this. Connect automations through a shared brokerage account (such as automations@ your domain) rather than one person's login. And record every connection, its account and its last renewal in the runbook (this module's template).

The owner and the monthly review

Every automation needs a named owner and a backup. "IT" or "the agency" is not an owner. The owner does a short monthly review:

  • Read the error count and alerts for the month. Any repeats?
  • Check usage against the plan limit. Will it run out?
  • Open three random successful runs and read them end to end. Still doing the right thing?
  • Check connections: any expiring, any tied to someone who has left?
  • Check vendor and model change notices for anything that affects the workflow.
  • For AI steps, rerun the test cases from the spec and compare.
  • Confirm consent rules and message templates are still current.
  • Update the runbook and the change log.

In practice

At 8:40 a.m. on a Monday, the operations manager at Lakeshore Homes Brokerage (fictional) gets an alert: "Lead intake failed at step 'Create Gmail draft' for lead L-2291. Error: invalid_grant." The runbook says that error means the Google connection expired. The connection was set up under a former admin's account, which was suspended when they left on Friday.

She reconnects using the shared automations@ account, then opens the Executions list, filters for failed runs since Friday, and replays the four leads that came in over the weekend after checking that none had already been answered. Total time: 20 minutes. Without the error path and the alert, four leads would have sat unanswered until someone wondered why the inbox was quiet. At the next monthly review she moves every remaining connection to the shared account.

Common mistakes

  • No error path, so failures stop silently.
  • Retrying a send step without a duplicate check.
  • Alerts that include full client details in a busy group chat.
  • Connections tied to personal accounts of staff who may leave.
  • No named owner, so everyone assumes someone else is watching.

Key takeaways

  • Expect breakage: expired connections, changed fields, rate limits, retired models and used-up quotas.
  • Give every important step an error path. Retry transient errors; alert a person on permanent ones.
  • Alerts go to a named owner, link to the run, and leave client details in the system.
  • Keep run logs, and connect apps through a shared brokerage account.
  • A 30-minute monthly review keeps an automation alive far longer than any clever build.

Finished reading? Move on when you're ready.