n8n errors / Schema

ERROR: Unknown top-level item key: pairedItems [item 0]

platform: n8n / category: Schema

Cause

A node (often Google Sheets) emits an invalid 'pairedItems' key that the Code node's strict validator rejects (only json, binary, error, pairedItem, index are allowed).

Fix

Add a Code node before the failing node to delete the key: for (const item of $input.all()) { delete item.pairedItems; } return $input.all();. Permanently fix by upgrading to n8n v1.18.1+ which resolves the upstream Google Sheets bug.

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