No fields - node executed, but no items were sent on this branch

Describe the problem/error/question

no getting the values from previous nodes to map them in next nodes!

this is happening after the switch node

What is the error message (if any)?

Please share your workflow

{
“nodes”: [
{
“parameters”: {
“modelId”: {
“__rl”: true,
“value”: “gpt-4.1-mini”,
“mode”: “list”,
“cachedResultName”: “GPT-4.1-MINI”
},
“messages”: {
“values”: [
{
“content”: “=You are Tuvok, the digital CEO assistant.\n\nClassify the user’s voice command into one of these intents:\n\n- "status" → If the user asks about Brudys, Broodie, Tuvok, weekly report, project update, performance, or score summary\n- "create_idea" → If the user wants to log a new business idea\n- "score_idea" → If the user says something like "rate this idea" or mentions a score (e.g., 85)\n- "update_stage" → If they want to move a business idea to a new stage (like Research, Setup, Build, etc.)\n- "add_timeline" → If they mention setting a deadline, due date, or next step\n- "list_ideas" → If they want to view all ideas in a certain stage\n- "unknown" → If it doesn’t match any of the above\n\nRespond with only one of the above keywords.\n\nCommand:\n"{{ $json.text }}"\nor\n{{ $json.text }}\n”
}
]
},
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.openAi”,
“typeVersion”: 1.8,
“position”: [
540,
620
],
“id”: “aeae7e7e-4766-44e2-a620-94011fe7abbd”,
“name”: “OpenAI2”,
“credentials”: {
“openAiApi”: {
“id”: “3zS3w1eNBWt5EIEl”,
“name”: “OpenAi account”
}
}
},
{
“parameters”: {
“rules”: {
“values”: [
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“leftValue”: “={{ $json.message.content }}”,
“rightValue”: “status”,
“operator”: {
“type”: “string”,
“operation”: “equals”
},
“id”: “83961107-96cb-4220-bd05-f20736b2f27c”
}
],
“combinator”: “and”
}
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “9ad2ac5d-d111-4147-b37c-f622c7506a91”,
“leftValue”: “={{ $json.message.content }}”,
“rightValue”: “create_idea”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
}
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “f90f8303-aa6c-40ed-89f0-13171c0171f0”,
“leftValue”: “={{ $json.message.content }}”,
“rightValue”: “score_idea”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
}
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “35af8754-840b-4704-a01f-ea4239ec236e”,
“leftValue”: “={{ $json.message.content }}”,
“rightValue”: “update_stage”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
}
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “2dd9ad3b-9690-45e7-ab0b-9d2bedbf1194”,
“leftValue”: “={{ $json.message.content }}”,
“rightValue”: “add_timeline”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
}
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “06cf0ecd-c199-4df2-a5c3-473dadf5cb15”,
“leftValue”: “={{ $json.message.content }}”,
“rightValue”: “list_ideas”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
}
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “0fa16a26-a6b5-4283-a8ae-23421df32f9f”,
“leftValue”: “={{ $json.message.content }}”,
“rightValue”: “unknown”,
“operator”: {
“type”: “string”,
“operation”: “equals”,
“name”: “filter.operator.equals”
}
}
],
“combinator”: “and”
}
}
]
},
“options”: {
“allMatchingOutputs”: false
}
},
“type”: “n8n-nodes-base.switch”,
“typeVersion”: 3.2,
“position”: [
920,
540
],
“id”: “fb21c8b6-eebc-4365-baa9-36a34a1f3375”,
“name”: “Switch”,
“alwaysOutputData”: false
},
{
“parameters”: {
“modelId”: {
“__rl”: true,
“value”: “gpt-4.1-mini”,
“mode”: “list”,
“cachedResultName”: “GPT-4.1-MINI”
},
“messages”: {
“values”: [
{
“content”: “=You are Tuvok, the digital CEO assistant.\n\nFrom the command, extract:\n- Business Name\n- Viability Score (between 0 and 100)\n\nRespond ONLY in JSON like this:\n{\n "Business Name": " ",\n "Viability Score": " "\n}\nUser Input: {{ $(‘Edit Fields’).item.json.text }}”
}
]
},
“jsonOutput”: true,
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.openAi”,
“typeVersion”: 1.8,
“position”: [
1360,
560
],
“id”: “876ec6b1-ab35-4887-84cb-0ab6063ed488”,
“name”: “OpenAI6”,
“credentials”: {
“openAiApi”: {
“id”: “3zS3w1eNBWt5EIEl”,
“name”: “OpenAi account”
}
}
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “c8a0739a-18b6-4e78-b772-b0bbdd18bac4”,
“name”: “text”,
“value”: “={{ $json.message.text }}”,
“type”: “string”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
640,
400
],
“id”: “5e4c8b99-dc6f-44da-acb5-abff0b9be61c”,
“name”: “Edit Fields”
}
],
“connections”: {
“OpenAI2”: {
“main”: [
[
{
“node”: “Switch”,
“type”: “main”,
“index”: 0
}
]
]
},
“Switch”: {
“main”: [
,
,
[
{
“node”: “OpenAI6”,
“type”: “main”,
“index”: 0
}
],
,
,
,

]
},
“OpenAI6”: {
“main”: [

]
},
“Edit Fields”: {
“main”: [
[
{
“node”: “OpenAI2”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “ccabc72d94bc6a95bc7c2244eb26fa22ad0ff33df3cf3233abeab05b3a86ac14”
}
}

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

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

Even you already has unknown. There are still possibility to go to others.

I added a fallback option to other and you can test if your scenario go to the other.

the main problem is that i want the data of the previous nodes after the switch it doesnot matter which path it goes it just doesnot provide the mapping for the previous nodes and says that
No fields- node executed but no items were sent on this branch.

If you don’t receive data from switch

It means it didn’t go to any path.

So add a fallback path will make sure it goes at least one path.

the data goes to just the first path no matter which path runs! why is that?

talking about all of the data we have in previous nodes

Ok i got the solution it just do not show the data for mapping but if you use the exact json mapping from previous nodes it will pull the data!

note that it only shows the mapping data for only the first switch path!

I came here because i had the same problem, after reading your comment, I noticed that if you swap your “input” side of the node from “schema” to Table and JSON, and look up the node you are trying to get the information from in the dropdown list, select it, then go back to “schema”, now it shows the information. at least for me

Thank you for your comment i was able to move forward!