# Missing or unwanted message diagnosis

Walk the gates in order and stop at the first one that fails. A gate passes only with evidence. Do not change Canvas filters, caps or subscription settings to make a test message arrive: that hides why production users were suppressed.

UI paths and retention were checked on 2026-10-17; confirm them in the workspace.

## Step 0: write the case and capture perishable evidence

Write the case first:

```yaml
case: "Acme first import reminder not received"
scope: one person            # one person, or population (several, unknown how many)
profile: external_id 00000000-0000-4000-8000-000000000001   # reported by the user; fixtures add the qa-fN- prefix
canvas: Acme first import reminder
expected: "reminder email at entry + 24h"
observed: "no email"
business_event_time: "2026-10-15T09:02:00Z"
user_timezone: Europe/London
```

Then capture what expires, in the first reply, before walking the gates:

- Message Activity Log: Settings > Setup and Testing > Message Activity Log. Keeps errors from the last 60 hours, and shows a sample for large sends (capped per error type per clock hour). Export or screenshot the relevant rows now.
- `/users/track/status` for any `group_id` involved: kept 24 hours.
- Event User Log: Settings > Setup and Testing > Event User Log. Kept 30 days. It shows SDK and REST API logs only for members of an internal group with User Events recording turned on, which in practice means test users. For a real customer, or a fixture outside such a group, it is empty and proves nothing.
- Messaging History tab on the profile: about 40 recent messaging events from the last 30 days, and not updated after a merge.

## Population view: several people, or an unknown number

Use this before the gates when the report is "the Canvas sent to nobody", "sent to the wrong people", "sent twice" or any case with more than one person. Once the incident is older than about 60 hours, these are the only sources left for most gates.

1. Find the step. Canvas analytics in the dashboard, or the MCP tool `get_canvas_data_series` (or `GET /canvas/data_series` with a read-only key): entries and sends per step per day for the incident window. Pass: the first step where sends fall below entries, or entries fall below the producer ledger count.
2. Count by reason. Where the workspace has Currents or Snowflake Data Sharing, query Canvas Entry, Exit Perform Event, Exit Match Audience, Canvas Step Progression, the channel send events and the channel abort events (with `abort_type`, which is `frequency_capped` for a global cap) by Canvas and step for the window. Verify event and table names live against the Currents event glossary in `sources.yaml`; they differ between Currents and data share tables.
3. In the dashboard, Query Builder queries the same Snowflake tables. It returns the last 60 days by default, and up to two years where Currents or Snowflake Data Sharing is enabled.
4. Count affected customers: the same query, filtered to people who should have received (or should not have received) the step, returns a count and business keys only, never contact details. The agent drafts it; the user or the data owner runs it.
5. Then pick one affected test profile, or one profile the user looks up, and walk the gates below to name the cause.

## Gate 1: source event

Question: did the business event happen, once, and reach Braze?

- Look at: the producer's ledger (business key, send time, response), the `/users/track` response `errors` array or the `/canvas/trigger/send` response and its `notice`, and `/users/export/ids` for the profile. Use the Event User Log filtered to API or SDK only when the profile is in an internal group with User Events recording on.
- Pass: one accepted write or trigger for the business key, timestamped before the expected send.
- An empty Event User Log for a profile outside such a group is not evidence that the event never reached Braze. Do not fail Gate 1 on it.
- Typical failures:
  - Rejected object inside a 201 (`EMAIL_BAD_FORMAT`, bad subscription group ID). Request-level `request_status_*` entries are not rejections.
  - 429 with no retry, or a retry storm.
  - A retry after a 5xx or timeout logged the event twice.
  - `notice` says the Canvas is paused or archived.
  - The browser sent an intent event but the Canvas listens for the server-confirmed event.
  - Event and the attribute the entry audience needs were sent in separate requests and landed in the wrong order.

## Gate 2: profile

Question: is there exactly one profile for this person, and does it hold the data the Canvas needs?

- Look at: Search Users (external_id, Braze ID, email, phone, push token or alias; phone numbers are normalised to E.164 before search). Search by email too, to find duplicates. `/users/export/ids` with only the needed `fields_to_export`, never email or phone for a real customer.
- Pass: one profile; the external_id matches the producer's; attributes used by entry audience and Liquid are present with the expected types.
- Typical failures:
  - Anonymous and identified duplicates, often from changeUser timing or a backend-first profile.
  - An orphan profile created by a malformed external_id.
  - A date stored as a string because it did not match a supported format, so date filters ignore it.
  - Profile blocked as a dummy user (blacklisted external_id error).

## Gate 3: entry

Question: did the user enter, and if not, which entry control kept them out?

- Look at: `/users/export/ids` with `canvases_received`: `last_entered`, `last_exited`, `in_control`, `variation_name`, `steps_received`. Canvas status, entry schedule and window, entry audience, "Allow users to re-enter this Canvas" and its window, "Limit entrance volume". Global Control Group status on the profile's Engagement tab, Miscellaneous section.
- Pass: `last_entered` after the business event, not in control.
- Typical failures:
  - Canvas not active, or outside its entry window, at event time.
  - Re-eligibility off and the user entered once before (entry counts even if nothing was sent).
  - Entry limit reached for the hour or day (hourly limits reset at each UTC hour).
  - Entry audience evaluated before the attribute it needs had landed.
  - Global Control Group member (API-triggered Canvases are not exempt), or Canvas control variant.
  - API trigger with `send_to_existing_only` true and no profile yet.

## Gate 4: current eligibility

Question: was the user still eligible when the step ran?

- Look at: `last_exited`, exit criteria (exception events, exit segments), delivery validations on the Message step, Audience Paths and Decision Split definitions, send-time lookups in the message Liquid, and Delay step settings.
- Pass: user reached the Message step, met its validations, and had not been marked to exit.
- Typical failures:
  - Correct exit: the user completed or cancelled during the delay. This is a pass for the journey; close the case as expected suppression.
  - Exit criteria too broad, for example an exit event not matched to the entry object.
  - A send-time recheck reads profile-level state for an object-level journey, so another object's outcome removes the user.
  - Personalised delay date in the past, or no timezone on the profile, so the user exited at the Delay step.
  - Validation reads a stale warehouse attribute.

## Gate 5: permission

Question: did the user have permission for this channel and category at send time?

- Look at: the profile's Engagement tab contact settings (email, SMS and push subscription states, subscription groups, push token changelog); the Canvas Send Settings subscription setting; the subscription group selected for SMS or WhatsApp.
- Pass: the state the Canvas requires, set by a trusted source.
- Typical failures:
  - Globally unsubscribed; unsubscribed from the email group used as a filter; not in the SMS group the message was launched from.
  - Canvas set to opted-in only while users are only "subscribed".
  - For unwanted messages: a campaign set to send to all users including unsubscribed, or a sync that resubscribed the profile.

## Gate 6: reachability

Question: could the channel reach this profile?

- Look at: email address present and not marked invalid by a hard bounce; push token present for the app; phone stored and valid in E.164; for in-app messages, a session on a supported SDK version after the trigger.
- Pass: a deliverable address, token or phone for the channel.

## Gate 7: delivery controls

Question: did a control hold, skip or abort the message?

- Look at: Messaging History tab (message abort events, frequency cap events); Message Activity Log (Aborted Message Errors with the Liquid snippet or reason, Connected Content errors, Mail errors, SMS/MMS errors, Bad user trigger errors); Settings > Frequency Capping Rules; the quiet hours setting on this Canvas and on the workspace; rate limit on the Canvas.
- Pass: no cap, abort or hold event for this user and step, or a hold that later released.
- Typical failures:
  - Frequency capped (user advanced to the next step).
  - A Liquid abort tag fired because a field was missing, or a send-time lookup aborted.
  - Connected Content error.
  - Quiet hours set to abort on this Canvas. Workspace quiet hours abort API-triggered and API campaigns by default; Braze does not state the default for API-triggered Canvases, so read the Canvas's own quiet hours setting and fallback in the dashboard rather than assume an abort.
  - A rate limit delayed it 72 hours and it was aborted.

## Gate 8: outcome

Question: was it sent, and did the provider or device accept it?

- Look at: Messaging History engagement events (send, delivery, bounce where the channel reports them); Message Activity Log for push, mail, SMS and WhatsApp errors; the email provider's or SMS provider's logs if the delivery owner can share them.
- Pass: a send event and no provider rejection. A send is not proof of receipt; record the provider or device outcome separately.

## Unwanted message variant

For "sent twice", "sent to the wrong person" or "sent after unsubscribing", walk the same gates and ask what should have stopped it:

- Twice: two producers, a retry without a ledger, re-eligibility shorter than the Canvas, or two entries for two objects with unmatched exits.
- Wrong person: a shared external_id, a merge into the wrong target, a recipient role mistake (the event's actor is not the account's billing contact), or several profiles sharing one email address (Braze sends to the address if any of them qualifies, even when another is in the Global Control Group).
- After unsubscribe: the unsubscribe landed on a duplicate profile, a sync restored the old state, the message ignores subscription state, or the message was already held by quiet hours and validation was off.

## Report

```yaml
case: "Acme first import reminder not received"
first_failing_gate: 4
evidence:
  - gate: 1
    result: pass
    note: "producer ledger key ws-000412 accepted 2026-10-15T09:02:03Z"
  - gate: 2
    result: pass
    note: "one profile, external_id 00000000-0000-4000-8000-000000000001 matches"
  - gate: 3
    result: pass
    note: "last_entered 2026-10-15T09:02:40Z, in_control false"
  - gate: 4
    result: fail
    note: "exit event workspace_cancelled had no workspace_id filter; the admin cancelled ws-000413 and exited the ws-000412 journey"
cause: "exit criteria not matched to entry object"
fix_draft: "workspace_cancelled exit: property filter workspace_id equals, Personalize value from context; owner: lifecycle ops"
retest: "fixtures F4 and F11 in the test plan"
customers_affected_query: "draft: users with an Exit Perform Event for this Canvas shortly after a workspace_cancelled event, joined to the producer ledger to keep those whose cancelled workspace differs from their open one, 2026-10-01 to 2026-10-15. Source: Currents or Snowflake Data Sharing, or Query Builder; verify table and column names live. Returns a count and business keys only. Run by the user."
```
