// guides · n8n error index

n8n expression errors and empty values: 29 tests, every message explained

What "Referenced node doesn't exist", "Paired item data is unavailable", "invalid syntax" and "expects a number" mean in n8n, why an expression quietly returns null or the raw {{ }} text, and the fix for each. From 29 real runs on n8n 2.43.7.

Updated 2026-10-19 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. Check the expression is really an expression

    If the output shows the literal text {{ $json.name }}, the field is in Fixed mode. In the workflow JSON an expression starts with =; without it, our Set node printed the braces as plain text for every item, with no error. Switch the field to Expression (or drag the field in from the input panel) and the value appears.

  2. Expect null, not an error, for missing fields

    n8n expressions are forgiving: {{ $json.missing }}, {{ $json.user.email }} on an item with no user, and even {{ $json.missing.toUpperCase() }} all gave null in our runs, and the workflow carried on. That is why a field "is empty" with no error. Fix the data, or give a default: {{ $json.user?.email ?? 'none' }} returned none for the item without a user. The same code inside a Code node is not forgiving: $json.user.email stopped it with Cannot read properties of undefined (reading 'email'). A few helpers do throw on a missing value: {{ $json.created.toDateTime() }} failed with toDateTime can't be used on undefined value; write $json.created?.toDateTime().

  3. Fix node references: "Referenced node doesn't exist" and "No path back"

    $('Name') must match the node name exactly. A typo, or a node you renamed after writing the expression (we referenced Get data after renaming it Data), stopped the node with Referenced node doesn't exist. Referencing a node that exists but is not on the path to the current node (it never ran) gave Invalid expression, with the internal message No path back to referenced node. If the node may be skipped (an IF branch, an optional step), guard it: {{ $('Other').isExecuted ? $('Other').first().json.x : 'skipped' }} ran fine in our test.

  4. Fix "Paired item data is unavailable"

    $('Data').item asks n8n for the item in Data that produced the current item. A Code node that returns new items breaks that link only when n8n can't guess it: 2 items in and 2 new items out still worked (Ada, Bob), and 2 in, 1 out quietly paired with the first item. But 2 in and 3 out failed with Paired item data for item from node 'Make' is unavailable. Ensure 'Make' is providing the required output. Two fixes that worked: return pairedItem: {item: i} with each new item in the Code node (output Ada, Bob, Bob), or use $('Data').first(), .last() or .all()[$itemIndex] when you don't need the link.

  5. Fix types and syntax

    A Set field of type Number fed the text Ada stopped with 'v' expects a number but we got 'Ada' [item 0]; turn on Ignore Type Conversion Errors or change the field type. Watch numbers stored as text: with price: "10", {{ $json.price + 2 }} gave 102, while * 2 gave 20 and {{ Number($json.price) + 2 }} gave 12. A missing bracket or a dangling + gave only invalid syntax, with no line number, so count your brackets and quotes. Field names with spaces need brackets: {{ $json['first name'] }}. An object in a String field came out as JSON text, {"email":"ada@x.io"}.

What we tested, and what happened

On 19 October 2026 we ran 29 small workflows on self-hosted n8n 2.43.7 with n8n execute, Set node version 3.4 and Code node version 2. The test data was two items: Ada (with price: "10" and a user object) and Bob (with price: "7" and no user).

Expression or setupWhat happened
{{ $json.missing }}null for both items, no error.
{{ $json.user.email }}, Bob has no userAda: ada@x.io, Bob: null, no error.
{{ $json.user?.email ?? 'none' }}Ada: ada@x.io, Bob: none.
{{ $json.missing.toUpperCase() }}null, no error.
Same as Code node JS: $json.user.emailError: Cannot read properties of undefined (reading 'email') [line 1].
{{ $json.created.toDateTime() }}, no created fieldError: toDateTime can't be used on undefined value.
{{ $json.name }} without the = (Fixed mode)Literal text {{ $json.name }}.
{{ $('Nope').item.json.name }}Error: Referenced node doesn't exist.
Reference to the old name after renaming a nodeSame error.
$('Other').item, Other not connectedError: Invalid expression (No path back to referenced node).
Same with an isExecuted guardRan, value skipped.
Code node 2 in, 2 new out, then $('Data').itemWorked: Ada, Bob.
Code node 2 in, 1 new out, then $('Data').itemWorked, silently paired with Ada.
Code node 2 in, 3 new out, then $('Data').itemError: Paired item data for item from node 'Make' is unavailable.
Same, Code node returns pairedItemWorked: Ada, Bob, Bob.
Same, $('Data').first() instead of .itemWorked: Ada for all 3.
$('Data').all()[$itemIndex], .first(), .last()Worked.
Legacy $node['Data'].json.nameStill worked.
{{ $json.name + }}, {{ $json.name.toUpperCase( }}Error: invalid syntax.
Number field fed AdaError: 'v' expects a number but we got 'Ada' [item 0]. With Ignore Type Conversion Errors: Ada.
price: "10": + 2, * 2, Number() + 2102, 20, 12.
Object in a String field{"email":"ada@x.io"}.
{{ $json['first name'] }}Ada.
{{ $json.tags.split(',').length }}, Bob has no tagsAda: 2, Bob: null, no error.
{{ '2026-10-19'.toDateTime().plus(1,'days').toFormat('dd/MM/yyyy') }}20/10/2026.

Quick checklist

Good to know

What we didn't test

Expression gives null or stays as literal {{ }} text inside an Edit Fields (Set) node? See n8n Edit Fields (Set) node not working (29 real runs).

FAQ

Why does my n8n expression return null or an empty value?

The field is missing, misspelled or nested differently on that item. In our n8n 2.43.7 tests, $json.missing, $json.user.email with no user and even $json.missing.toUpperCase() all returned null without an error. Add a default with ?? or check the input panel for the exact field name.

What does "Referenced node doesn't exist" mean in n8n?

The name inside $('...') doesn't match any node in the workflow, usually because of a typo or because the node was renamed after the expression was written. Fix the name and the error goes away.

How do I fix "Paired item data is unavailable" in n8n?

A node before it, often a Code node, created new items without saying which input item each came from. Return pairedItem: {item: i} with each new item, or use $('Node').first(), .last() or .all()[$itemIndex] instead of .item.

Why does n8n show {{ $json.field }} as text instead of the value?

The field is set to Fixed instead of Expression. Switch it to Expression; in the workflow JSON, an expression value starts with an equals sign.

Why does n8n add 10 + 2 as 102?

The value is stored as text, so + joins the two. Use Number($json.price) + 2, or set the field type to Number in an earlier Set node.

Related guides

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.