ERROR: Cannot use 'in' operator to search for 'json' in null [Line 752]

Describe the issue/error/question

I am trying to transform an ecommerce order CSV into a list of order objects. The CSV has a line for every line item. For example - an order #100 can be on lines 1-5 and then order #101 on line 6. Each would have different items.

Here is my example netsuite.csv · GitHub

What is the error message (if any)?

ERROR: Cannot use ‘in’ operator to search for ‘json’ in null [Line 752]

Please share the workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 0.177.0
  • Database you’re using: SQLite
  • Running n8n with : own
  • Running n8n via : npm

I think it might be line 3 of my function - but it is still confusing me why. Also not getting items to push into the items array yet.

In an effort to assist anyone that encounters an issue like this in the future. The issue was syntax on the function itself.

This is the whole flow that I am using:

2 Likes

Glad to hear you figured this out, thanks so much for sharing @cgsmith!

1 Like