No binary data set issue from chat trigger

Describe the problem/error/question

I have the exact same issue as here "No binary data set." when trying to upload .png to Claude 3.5 API but there was never an answer and the topic is closed so I’m trying here again.

What is the error message (if any)?

No binary data set, I’ve attached an image in the chat but the next node is never finding a binary file. I’ve tried the following
{{ $input.item.binary }}, {{ $input.item.binary.data0 }}, {{ $input.item.binary.data0.binary }}, {{ $json.files[0] }}

Please share your workflow

Share the output returned by the last node

{
  "errorMessage": "No binary data set.",
  "errorDetails": {},
  "n8nDetails": {
    "nodeName": "Wallet Validator",
    "nodeType": "@n8n/n8n-nodes-langchain.chainLlm",
    "nodeVersion": 1.4,
    "time": "20/02/2025, 11:36:31",
    "n8nVersion": "1.79.0 (Self Hosted)",
    "binaryDataMode": "default",
    "stackTrace": [
      "NodeOperationError: No binary data set.",
      "    at getImageMessage (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/chains/ChainLLM/ChainLlm.node.js:40:15)",
      "    at /usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/chains/ChainLLM/ChainLlm.node.js:84:36",
      "    at Array.map (<anonymous>)",
      "    at getChainPromptTemplate (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/chains/ChainLLM/ChainLlm.node.js:72:67)",
      "    at getChain (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/chains/ChainLLM/ChainLlm.node.js:115:32)",
      "    at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/chains/ChainLLM/ChainLlm.node.js:423:41)",
      "    at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:627:19)",
      "    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:878:51",
      "    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1211:20"
    ]
  }
}

Information on your n8n setup

  • n8n version: 1.79.0
  • Database (default: SQLite): sqlite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker (self-hosted)
  • Operating system: Mac

Hey @e11en,

You don’t need to use expressions for that.
If the name is data0, jus type data0, like this:

image

image

If my reply answers your question, please remember to mark it as the solution.

2 Likes

That was easy… I was overcomplicating I see, thanks!

1 Like

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