> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Troubleshooting Canonical URL: https://posthog.com/docs/workflows/resources/troubleshooting > **Cloud region:** This page uses US Cloud hosts. For an EU Cloud project, use `https://eu.posthog.com` instead of `https://app.posthog.com` (app host for links). ## On this page - [An email didn't arrive](#an-email-didnt-arrive) - [Emails go to spam](#emails-go-to-spam) - [No sender in the email step](#no-sender-in-the-email-step) - [A variable is blank, or the email won't send](#a-variable-is-blank-or-the-email-wont-send) - [Nobody entered the automation](#nobody-entered-the-automation) - [An automation won't turn on](#an-automation-wont-turn-on) - [A batch run failed with nobody in it](#a-batch-run-failed-with-nobody-in-it) - [I need to stop it now](#i-need-to-stop-it-now) - [A send from code returned an error](#a-send-from-code-returned-an-error) - [Push notifications aren't arriving](#push-notifications-arent-arriving) - [Still stuck?](#still-stuck) Start with the logs. Every run records each step it took, and why a step failed or was skipped. ## An email didn't arrive 1. **Find the send.** For a transactional email, check the [**Log**](https://posthog.com/docs/workflows/transactional.md#see-each-send). For a broadcast, open **Not sent** on the broadcast. For an automation, open the run on **Invocations**. 2. **Read the reason.** A skipped or failed send says why. The common reasons are in the table below. For transactional statuses, see [status and troubleshooting](https://posthog.com/docs/workflows/transactional/status.md). 3. **Was it delivered?** Then the recipient's mail server accepted it. Check the spam folder, and that your [domain's DNS records](https://posthog.com/docs/workflows/domain.md#the-dns-records) are still in place. | The log says | What to do | | --- | --- | | `Recipient has opted out` | They opted out of the email's category. See [opt-outs](https://posthog.com/docs/workflows/email/opt-outs.md). | | `on the suppression list` | Email to this address bounced or was reported as spam before. See [suppression list](https://posthog.com/docs/workflows/email/suppression.md). | | `recipient reached the frequency cap` | They already got the most marketing email you allow. See [frequency cap](https://posthog.com/docs/workflows/email/frequency-cap.md). | | `the recipient has no email address` | Add a filter so only people with an email address reach the step. | | `is not a valid email address` or `has no reachable mail servers` | The address would hard bounce, so PostHog didn't send. Fix the address. | | `email sending is paused for this workflow` | Too many bounces or spam reports from this automation. Clean up its audience, then resume it. | | `email sending is suspended for this project` | See [keep your deliverability healthy](https://posthog.com/docs/workflows/email/deliverability.md#if-a-rate-goes-over-the-line) and [how bounces, complaints, and suppressions work](https://posthog.com/docs/workflows/concepts/bounces-and-suppressions.md). | To find every bounce or spam report, click **Bounced** or **Marked as spam** on an automation's **Metrics** tab. It opens **Invocations**, filtered to those runs. Ask your agentwith the [PostHog MCP](https://posthog.com/docs/workflows/mcp.md)[measuring-email-performance](https://posthog.com/docs/workflows/skills.md) “Find out why our recent emails bounced or didn't arrive.” Copy ## Emails go to spam - [Set up your domain](https://posthog.com/docs/workflows/domain.md), so SPF and DKIM pass, and add the DMARC record. - Use a real sender name and the same from address every time. - Check your rates on **Reputation**, and read [deliverability](https://posthog.com/docs/workflows/email/deliverability.md). ## No sender in the email step Add one first. See [set up your domain](https://posthog.com/docs/workflows/domain.md), or use the [test sender](https://posthog.com/docs/workflows/email/test-sender.md) for now. Only project admins can add a sender. ## A variable is blank, or the email won't send | Problem | Fix | | --- | --- | | A blank where a name should be | The person doesn't have the property. Add `\| default: 'there'`. | | `TokenizationError` | Use single quotes inside `{{ }}`, not double quotes. | | `expected "\|" before filter` | A property starts with `$`. Use `person.properties['$email']`. | | A merge tag can't be read | Check the tag for typos. | | A merge tag in a link is broken | Edit the link and type the tag again. | | `Total variable size ... exceeds 5KB limit` | All of a run's variables together must fit in 5 KB. On the step that saves the variable, save only the field you need, not the whole response. | See [Liquid and variables](https://posthog.com/docs/workflows/email/liquid.md#when-it-goes-wrong) and [use results in later steps](https://posthog.com/docs/workflows/automations/steps.md#use-results-in-later-steps). ## Nobody entered the automation - **Is it on?** A draft doesn't run. - **Does the event arrive?** Event names must match exactly. The trigger shows how many events matched in the last 7 days. - **Did they enter before?** With **One time per period** set to **ever**, a person enters only once. See [how often one person can enter](https://posthog.com/docs/workflows/automations/triggers.md#how-often-one-person-can-enter). ## An automation won't turn on PostHog checks every step before it turns on, and lists what to fix, such as a missing trigger event or email address. You can save a draft that isn't finished. ## A batch run failed with nobody in it PostHog couldn't find the audience, so nobody was added. Open the run on **Invocations** to read its log. Most often, the audience query timed out. PostHog tries 5 times before it gives up. Use fewer or simpler filters, or a smaller audience, and run it again. If it keeps failing, [contact support](https://app.posthog.com/#panel=support) with the automation and the time of the run. ## I need to stop it now Cancel runs from **Invocations**. Turning an automation off only stops new people from entering. People already in it stop at their next step. See [stop runs](https://posthog.com/docs/workflows/automations/debug.md#stop-runs). ## A send from code returned an error The error `code` says why, and whether to retry. See [retries and errors](https://posthog.com/docs/workflows/transactional/retries-and-errors.md). ## Push notifications aren't arriving Open the run's logs: - **No active FCM device token found** or **No active APNS device token found:** the device never registered. Check your [SDK setup](https://posthog.com/docs/workflows/push.md#register-devices). - **Rejected the device token as invalid:** the device registered with a different Firebase project or bundle ID. For APNs, check that the channel's **Environment** matches your app build. - **Rejected the integration credentials:** check the Firebase service account key, or the APNs signing key, key ID, and team ID. - **The device is no longer reachable:** the app was uninstalled or the token expired. PostHog removes the token. See [push troubleshooting](https://posthog.com/docs/workflows/push.md#troubleshooting). ## Still stuck? Ask in the [community forum](https://posthog.com/questions.md), or [contact support](https://app.posthog.com/#panel=support) in PostHog.