If the route is right and the email still fails, the variable is the next suspect. Five causes cover almost everything.
1. snake_case copied from a notification template. The most common cause and the least obvious. Notification templates use names like customer.first_name and order.line_items. Flow's Liquid follows the Admin API, which uses camelCase: order.customer.firstName, order.lineItems. A snippet that works perfectly in one place fails silently in the other.
2. The variable doesn't exist for that trigger. Each trigger exposes different data. An Order created trigger gives you the order and, through it, the customer. A Customer created trigger has no order at all. Referencing order in a customer-triggered workflow returns nothing.
3. The value is genuinely empty. Guest checkouts may have no customer record attached. Some POS, draft and phone orders have no email. The variable path is correct. There's just no data behind it for that particular order. Add a condition that checks the field is present before the email step.
4. A list treated as a single value. Line items, tags and fulfillments are lists. Printing them directly outputs nothing useful; they need a for loop.
5. A typo or wrong nesting. The simplest and still common. Build variables with Flow's variable picker rather than typing them by hand. It only offers fields that exist for your trigger, which rules out causes 1, 2 and 5 in one move.
Which variables a trigger actually gives you
Flow filters the Add a variable list so that, in Shopify's words, "you only use the variables that are returned by steps prior to the current step, such as triggers." A variable that exists in the documentation is not necessarily available in your workflow: it depends on what your trigger returned. The Order Created trigger provides order and shop resources, and an order trigger will not hand you a product ID through {{ product.legacyResourceId }}.
The variable picker under the field is the authoritative answer for your workflow, not a reference table. Four syntax rules catch people out even when the variable is available:
- Flow's Liquid is camelCase, unlike theme Liquid. It is
{{ product.createdAt }}, not {{ product.created_at }}.
- No indexes.
{{ order.lineItems[0].title }} is not supported. Loop instead.
- No dot notation on metafields, and not on some filters either: use
{{ order.lineItems | size }}, not {{ order.lineItems.size }}.
- You cannot output a list or object directly. Loop over it and output the fields you want.
One honest caveat: Shopify's variables documentation does not publish what happens when a variable is empty, null or unavailable, and it documents no error text for that case. If you are hunting a specific error string, it is not in the official docs. Run history is where the real behavior shows up, which is the next section.