n8n errors / Schema
Can't get data for expression - Missing pairedItem data
Cause
A Code node did not attach paired-item metadata to its output, so downstream expressions like $('Node').item cannot trace which input produced each output.
Fix
Return items with a 'pairedItem' index, e.g. return items.map((item, i) => ({ json: item.json, pairedItem: i })). See the n8n docs 'Item linking in the Code node'. For single items use $input.first() instead of .item. Re-run from the start, not mid-execution.
Part of the Automation Error Index — n8n errors: browse all.
Hitting an automation error we have not covered?
AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.
Describe the problem