Getting this error all the time: ERROR: Can’t get data for expression under ‘Value 1’ field To fetch the data from other nodes that this expression needs, more information is needed from the node ‘Code’ More info

Describe the problem/error/question

I am getting this error all the time, this was not happening before:

What is the error message (if any)?

Can’t get data for expression

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: Cloud 1.2
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud
  • Operating system:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
  • n8n version: Cloud 1.2
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud

Hi @Eric_Morera1, welcome to the community and sorry for the trouble.

The error message here hints towards the cause of the problem: Your expression {{ $('Webhook').item.json.body[0].propertyValue }} is looking up data from a node before your Code node. It will do this through an approach called item linking (aka paired items) documented here. This will not work out of the box with the Code node as n8n cannot automatically make a connection between your current item and items from before your Code node.

From looking at your workflow you have two main options here I think:

  1. Provide the required data in your Code nodes. This is documented here.
  2. Alternatively pick an expression not relying on item linking functionality. Seeing a Webhook node typically returns only one item you could go with {{ $('Webhook').first().json.body[0].propertyValue }} for example