[ERROR: Can’t get data for expression]

I can’t get any variable before the node code

ERROR: Can’t get data for expression under ‘Body Parameters > Parameter’ field

To fetch the data from other nodes that this expression needs, more information is needed from the node ‘JSON to CSV | OtimizadoMore info

My Workflow:

The output returned by the last node

Missing pairedItem data (node ‘JSON to CSV | Otimizado’ probably didn’t supply it)

[{“name”:“phone”,“value”:“={{ $(‘Supabase’).item.json["phone"] }}”},{“name”:“message”,“value”:“={{ $json.choices[0].message.content }}”}]

ExpressionError: Can’t get data for expression
    at createExpressionError (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/WorkflowDataProxy.js:465:20)
    at getPairedItem (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/WorkflowDataProxy.js:517:27)
    at pairedItemMethod (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/WorkflowDataProxy.js:734:40)
    at Object.get (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/WorkflowDataProxy.js:737:40)
    at Proxy.eval (eval at getFunction (/usr/local/lib/node_modules/n8n/node_modules/@n8n/tournament/dist/index.js:24:22), <anonymous>:6:55)
    at Tournament.execute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/tournament/dist/index.js:33:19)
    at evaluateExpression (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/ExpressionEvaluatorProxy.js:110:16)
    at Expression.renderExpression (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Expression.js:217:70)
    at Expression.resolveSimpleParameterValue (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Expression.js:195:34)
    at resolveParameterValue (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Expression.js:276:25)

Information on your n8n setup

  • n8n version: 1.17.1
  • Database (default: SQLite): Supabase PostreSQL
  • n8n EXECUTIONS_PROCESS setting: Main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Debian 11

Missing pairedItem data (node ‘JSON to CSV | Otimizado’ probably didn’t supply it)

Hi @Linecker, this error message is pretty accurate it seems. Your Code node does not return the information required for n8n’s paired items/linked item functionality to work

Our documentation has more information at Item linking in the Code node | n8n Docs on how to add the required details to your code.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.