Hi I suddenly received this error when building my AI Agent. I have made some agents before and never received this issue. The interesting thing is that as you can see, I just have the barebones of the agent, haven’t even implemented all the fancy stuff yet. I looked through the json of the workflow and can’t even find any ‘supplyData’
Hi @Yozafard_Harold, hope all is well and welcome to the community.
Can you share the workflow? You can select and copy the workflow in your editor and then paste it here like this:
```
<...your paste here...>
```
Can you share the entire workflow please. The error means you’re trying to read “supplyData” as a property of an object where the parent object doesnt exist for example data.supplyData. If this worked in the past and not now, then likely you added nodes before the node doing this mapping where you used $json.data.supplyData or $json.supplyData. $json always looks at the node immediately before it and if you added another node inbetween, then those variables wont exist anymore. In such cases it is better to reference nodes by name like $('Edit Fields1').first().json.supplyData
Thats the entire workflow, looks slightly different to the screenshot as I stripped everything down to the bare minimums to make debugging easier. The same error still shows up. I am aware of how $json works, The problem that I’m facing is that I never even referenced any supplyData
Do you use supplyData in any of those MCP services you have connected? Also try and disconnect your memory and run a test. Ive seen it sometimes the memory kept referencing old data
Was there any solution to this error? I’m experiencing the same problem.
Did anyone got a solution for this? I’m getting this same error message with a google sheets node on the community edition, it started after I updated to the last version, i’ve already tried re-connecting credentials, creating new ones, but it still happens the same
This is my json if anyone can help me
{
“name”: “My workflow 13”,
“nodes”: [
{
“parameters”: {
“updates”: [
“message”
],
“additionalFields”: {}
},
“type”: “n8n-nodes-base.telegramTrigger”,
“typeVersion”: 1.2,
“position”: [
-608,
-192
],
“id”: “40aafe53-9ed7-4302-b04c-76fd4fae45ac”,
“name”: “Telegram Trigger”,
“webhookId”: “fde4fa36-1f3f-435d-955a-51372abbc87c”,
“credentials”: {
“telegramApi”: {
“id”: “xytAlJZwxqrXxDkT”,
“name”: “Printi AI”
}
}
},
{
“parameters”: {
“modelId”: {
“__rl”: true,
“value”: “gpt-4o-mini”,
“mode”: “list”,
“cachedResultName”: “GPT-4O-MINI”
},
“messages”: {
“values”: [
{
“content”: "=Mensaje del usuario:\n{{ $json.message.text }}\n\nResponde la pregunta: ¿Cuántos productos diferentes menciona el usuario?\n\nTu respuesta debe ser numérica y no incluir palabras, responde con:\n- 0\n- 1\n- 2\n- 3\n- 4\n- 5\n\nPor ejemplo:\nHola crea una cotización para Brisa Javier con estos datos, si te falta algo invéntalo, esto es para testear el flujo\n\n- Cantidad de bolígrafos multifunción bambú: 50\n\nAquí la respuesta es 1.\nPorque el usuario te pide una cotización, te da el nombre de un cliente y te menciona un producto llamado Bolígrafo multifunción el cual requiere 50 unidades de ese producto. "
}
]
},
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.openAi”,
“typeVersion”: 1.8,
“position”: [
-400,
-192
],
“id”: “cf75b835-9ba2-4824-bb56-cad1016587be”,
“name”: “Message a model”,
“credentials”: {
“openAiApi”: {
“id”: “o3LEEISm7NBp6SMD”,
“name”: “Printi AI”
}
}
},
{
“parameters”: {
“rules”: {
“values”: [
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “4d843210-45da-462d-abeb-3ce74845599f”,
“leftValue”: “={{ $json.message.content }}”,
“rightValue”: “0”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
}
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “764b6a87-78a6-4a50-a858-794f51d84943”,
“leftValue”: “={{ $json.message.content }}”,
“rightValue”: “1”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
}
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “b21e37b8-265d-47ca-aad0-027a876420ba”,
“leftValue”: “={{ $json.message.content }}”,
“rightValue”: “2”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
}
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “9ea98bfd-cff8-44b2-8cde-ea184f86cd7f”,
“leftValue”: “={{ $json.message.content }}”,
“rightValue”: “3”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
}
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “1cd4eb4c-2283-4482-98c7-b11f19ee7b50”,
“leftValue”: “={{ $json.message.content }}”,
“rightValue”: “4”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
}
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “1a5e6719-68e3-458c-93d8-51f6e4198e2e”,
“leftValue”: “={{ $json.message.content }}”,
“rightValue”: “5”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
}
}
]
},
“options”: {
“fallbackOutput”: “extra”
}
},
“type”: “n8n-nodes-base.switch”,
“typeVersion”: 3.2,
“position”: [
-48,
-272
],
“id”: “a98430a8-dbea-441b-a0e6-ab95dc557c48”,
“name”: “Switch”
},
{
“parameters”: {
“promptType”: “define”,
“text”: “=Mensaje: {{ $(‘Telegram Trigger’).item.json.message.text }}\nsession_id: {{ $(‘Telegram Trigger’).item.json.message.from.id }}”,
“options”: {
“systemMessage”: “You are a helpful assistant\n\nTu herramienta “Get row(s) in sheet in Google Sheets” sirve para ver los clientes que tienes”
}
},
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 2.2,
“position”: [
336,
-288
],
“id”: “6e183075-0b15-497b-857c-e89e1e14f5bd”,
“name”: “AI Agent”
},
{
“parameters”: {
“chatId”: “={{ $(‘Telegram Trigger’).item.json.message.from.id }}”,
“text”: “={{ $json.output }}”,
“additionalFields”: {
“appendAttribution”: false
}
},
“type”: “n8n-nodes-base.telegram”,
“typeVersion”: 1.2,
“position”: [
704,
-288
],
“id”: “792bbbc2-dc92-4256-86bc-2437c019d431”,
“name”: “Send a text message”,
“webhookId”: “d80019d7-76bf-4a59-9acb-f238b002fc34”,
“credentials”: {
“telegramApi”: {
“id”: “xytAlJZwxqrXxDkT”,
“name”: “Printi AI”
}
}
},
{
“parameters”: {
“model”: {
“__rl”: true,
“value”: “gpt-4o-mini”,
“mode”: “list”,
“cachedResultName”: “gpt-4o-mini”
},
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.lmChatOpenAi”,
“typeVersion”: 1.2,
“position”: [
336,
-80
],
“id”: “a17af702-694e-4816-94f1-1637a70ceb2a”,
“name”: “OpenAI Chat Model”,
“credentials”: {
“openAiApi”: {
“id”: “o3LEEISm7NBp6SMD”,
“name”: “Printi AI”
}
}
},
{
“parameters”: {
“sessionIdType”: “customKey”,
“sessionKey”: “={{ $(‘Telegram Trigger’).item.json.message.from.id }}”,
“contextWindowLength”: 100
},
“type”: “@n8n/n8n-nodes-langchain.memoryBufferWindow”,
“typeVersion”: 1.3,
“position”: [
432,
-80
],
“id”: “2763d4c8-2437-4a73-85f7-926c9956cb99”,
“name”: “Simple Memory”
},
{
“parameters”: {
“documentId”: {
“__rl”: true,
“value”: “1-jOuu2O64ybbEilwhrQ67_RDJFY6sZY_KPsVpdMMkb0”,
“mode”: “list”,
“cachedResultName”: “Printi_BaseDeDatos”,
“cachedResultUrl”: “Printi_BaseDeDatos - Google Sheets
},
“sheetName”: {
“__rl”: true,
“value”: 1879407365,
“mode”: “list”,
“cachedResultName”: “Cliente”,
“cachedResultUrl”: “Printi_BaseDeDatos - Google Sheets
},
“options”: {}
},
“type”: “n8n-nodes-base.googleSheetsTool”,
“typeVersion”: 4.7,
“position”: [
576,
-80
],
“id”: “4320d192-43f5-4047-8ca1-e5c3a876d1c8”,
“name”: “Get row(s) in sheet in Google Sheets”,
“credentials”: {
“googleSheetsOAuth2Api”: {
“id”: “AaoE0MOjxTNroq0E”,
“name”: “Printi_Caliope”
}
}
}
],
“pinData”: {},
“connections”: {
“Telegram Trigger”: {
“main”: [
[
{
“node”: “Message a model”,
“type”: “main”,
“index”: 0
}
]
]
},
“Message a model”: {
“main”: [
[
{
“node”: “Switch”,
“type”: “main”,
“index”: 0
}
]
]
},
“AI Agent”: {
“main”: [
[
{
“node”: “Send a text message”,
“type”: “main”,
“index”: 0
}
]
]
},
“OpenAI Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “AI Agent”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“Simple Memory”: {
“ai_memory”: [
[
{
“node”: “AI Agent”,
“type”: “ai_memory”,
“index”: 0
}
]
]
},
“Switch”: {
“main”: [
[
{
“node”: “AI Agent”,
“type”: “main”,
“index”: 0
}
],
,
,
,
,
,
]
},
“Get row(s) in sheet in Google Sheets”: {
“ai_tool”: [
[
{
“node”: “AI Agent”,
“type”: “ai_tool”,
“index”: 0
}
]
]
}
},
“active”: false,
“settings”: {
“executionOrder”: “v1”
},
“versionId”: “eed23591-cb1e-4daf-a5b4-af3b0713654e”,
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “5f09fa5656152ea73a66a1c18e4f5e0b8b10334b69570b12b5e0b2161094ca6d”
},
“id”: “pMPImesbDQx4RuWa”,
“tags”:
}
Hey guys, I found the solution, it seems there’s a compatibility problem with the new versions of the nodes on n8n community edition, so i just “downgraded” every node
At first I thought it was only with the Google Sheets Node, but I got issues between the new versions of every node and the past ones, so I decided to just use past node versions and that’s how i “fixed” it
im also experiecing this problem and i also found out that the reason is this mismatch in between versions, tried to downgrade the whole primary node (im hosting it on railway) and it didnt work - how do you downgrade every node separetly? to which version did you downgrade?
like, to download the workflow, manually to downgrade all nodes i need and to import it again? omg
What I did that time was that before upgrading anything I downloaded the json file, so I uploaded it again and that’s where I had the “downgraded” node and it worked.
And after a couple of days, I updated everything again and it worked well too.
Another thing to keep in mind is that if we redeploy everything on Railway to upgrade n8n, we need to redeploy the worker too, this helped me a lot with another bug I had.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
