n8n · tool · fg-0345

n8n expression errors with 'Multiple matching items for expression' after an Aggregate or Merge

If you see ERROR: Multiple matching items for expression, the cause and the fix for n8n are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
ERROR: Multiple matching items for expressionERROR: Info for expression missing from previous nodeExpression resolves to null with a note that the node is on another branch
Cause
$('Node').item follows each item back through the item links, and that thread breaks after nodes that combine items, after Code nodes that drop pairing, or across merged branches.
Fix
Use .first(), .last() or .all()[index] when you know the position, or set pairedItem in Code node output so links survive.
Apply
{{ $('Get customer').first().json.email }} // Code node: return items.map((it, i) => ({ json: {...}, pairedItem: i })); // index of the input item
Affected
n8n 1.x and 2.x, as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun