n8n · Code node

Code doesn't return items properly

Short answer

This n8n Code node error occurs when the code does not return data in the expected format. Return an array of objects in which each object wraps your data under the json key.

VerifiedLast verified

01Error text

n8n error
Code doesn't return items properly

02Likely causes

  • The code in the Code node doesn't return data in the expected format. n8n expects an array of objects, each wrapping another object under the json key.

03How to fix it

  1. Return an array of objects in which each object wraps your data under the json key.
  2. Check how data items work and how to connect data items from previous nodes with item linking.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for n8n work:Open n8n jobsn8n rates and salaries

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.