n8n errors / Other

No data found for item-index: "1"

platform: n8n / category: Other

Cause

A downstream node references a previous node with fewer items using legacy $node[] syntax, so index 1+ does not exist in the upstream output.

Fix

Replace $node["NodeName"].json["field"] with $item(0).$node["NodeName"].json["field"] to pin to a specific item, or use $item($itemIndex) to match each iteration. Better, use the modern $("NodeName").item.json.field syntax which handles pairedItem linking automatically.

Source thread →

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