Switch not providing any outputs

TLDR;
Summary: Switch Node provides no output routing.
n8n version: 1.113.3
Self-hosted: Docker Compose on Ubuntu 24
Database: Postgres (via Docker container)

I’m kinda new to n8n, I’ve been working with it for a little over a month, so I’m sure I’m just doing something incorrectly, but I’m at a loss. I am running self-hosted in docker on Ubuntu with a postgres container for the database. I recently updated to n8n version 1.113.3 in case I was experiencing a bug of some sort.

When I use a ‘switch’ it doesn’t appear to make any difference what rules or how many I create there are no 'output’ connections from the node.

I have created a very simple ‘test’ workflow that is manually triggered, uses a SET to set a numeric value of a field, then uses a switch to route based on the value. I have created several instances before/after upgrades etc just in case.

{

“nodes”: [
{
“parameters”: {},
“type”: “n8n-nodes-base.manualTrigger”,
“typeVersion”: 1,
“position”: [
-272,
-16
],
“id”: “95eead4c-19a1-46f4-9b5f-5f2d6b15d132”,
“name”: “When clicking ‘Execute workflow’”
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “10ffffe0-85c7-44bc-98a8-b47b1d3291db”,
“name”: “qty”,
“value”: 1,
“type”: “number”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
-64,
-16
],
“id”: “e8ff6846-f6af-4246-9e1d-8b7a65d81af6”,
“name”: “Edit Fields”
},
{
“parameters”: {
“rules”: {
“values”: [
{
“conditions”: {
“options”: {
“caseSensitive”: null,
“leftValue”: “”,
“typeValidation”: null,
“version”: null
},
“conditions”: [
{
“leftValue”: “={{ $json.qty }}”,
“rightValue”: 1,
“operator”: {
“type”: “number”,
“operation”: “equals”
},
“id”: “cfa53682-bd7b-4cdc-b7e3-998fa61468aa”
}
],
“combinator”: “and”
}
},
{
“conditions”: {
“options”: {
“caseSensitive”: null,
“leftValue”: “”,
“typeValidation”: null,
“version”: null
},
“conditions”: [
{
“id”: “1d29755c-64aa-47ba-aab2-65345207c108”,
“leftValue”: “={{ $json.qty }}”,
“rightValue”: 2,
“operator”: {
“type”: “number”,
“operation”: “equals”
}
}
],
“combinator”: “and”
}
},
{
“conditions”: {
“options”: {
“caseSensitive”: null,
“leftValue”: “”,
“typeValidation”: null,
“version”: null
},
“conditions”: [
{
“id”: “0f952acb-3f09-4df4-ab53-427ae076f932”,
“leftValue”: “={{ $json.qty }}”,
“rightValue”: 2,
“operator”: {
“type”: “number”,
“operation”: “gt”
}
}
],
“combinator”: “and”
}
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.switch”,
“typeVersion”: 3.2,
“position”: [
128,
-16
],
“id”: “d392ad28-3ece-4605-896c-f063044d6def”,
“name”: “Switch”
}
],
“connections”: {
“When clicking ‘Execute workflow’”: {
“main”: [
[
{
“node”: “Edit Fields”,
“type”: “main”,
“index”: 0
}
]
]
},
“Edit Fields”: {
“main”: [
[
{
“node”: “Switch”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“instanceId”: “19ffaddf616f7fa44fd41e6c0d4fbb2136bc4ab598a9460bbea8ba2caab5a094”
}
}

Hello @dustinr Hope you are well ,
i am providing you a json foe the same workflow ,
I think you should use it ,
It may solve the issue you are getting

{

“nodes”: [

{

  "parameters": {},

  "type": "n8n-nodes-base.manualTrigger",

  "typeVersion": 1,

  "position": \[

    -272,

    -16

  \],

  "id": "95eead4c-19a1-46f4-9b5f-5f2d6b15d132",

  "name": "When clicking ‘Execute workflow’"

},

{

  "parameters": {

    "assignments": {

      "assignments": \[

        {

          "id": "10ffffe0-85c7-44bc-98a8-b47b1d3291db",

          "name": "qty",

          "value": 1,

          "type": "number"

        }

      \]

    },

    "options": {}

  },

  "type": "n8n-nodes-base.set",

  "typeVersion": 3.4,

  "position": \[

    -64,

    -16

  \],

  "id": "e8ff6846-f6af-4246-9e1d-8b7a65d81af6",

  "name": "Edit Fields"

},

{

  "parameters": {

    "rules": {

      "values": \[

        {

          "conditions": {

            "options": {

              "caseSensitive": null,

              "leftValue": "",

              "typeValidation": null,

              "version": null

            },

            "conditions": \[

              {

                "leftValue": "={{ $json.qty }}",

                "rightValue": 1,

                "operator": {

                  "type": "number",

                  "operation": "equals"

                },

                "id": "cfa53682-bd7b-4cdc-b7e3-998fa61468aa"

              }

            \],

            "combinator": "and"

          }

        },

        {

          "conditions": {

            "options": {

              "caseSensitive": null,

              "leftValue": "",

              "typeValidation": null,

              "version": null

            },

            "conditions": \[

              {

                "id": "1d29755c-64aa-47ba-aab2-65345207c108",

                "leftValue": "={{ $json.qty }}",

                "rightValue": 2,

                "operator": {

                  "type": "number",

                  "operation": "equals"

                }

              }

            \],

            "combinator": "and"

          }

        },

        {

          "conditions": {

            "options": {

              "caseSensitive": null,

              "leftValue": "",

              "typeValidation": null,

              "version": null

            },

            "conditions": \[

              {

                "id": "0f952acb-3f09-4df4-ab53-427ae076f932",

                "leftValue": "={{ $json.qty }}",

                "rightValue": 2,

                "operator": {

                  "type": "number",

                  "operation": "gt"

                }

              }

            \],

            "combinator": "and"

          }

        }

      \]

    },

    "options": {}

  },

  "type": "n8n-nodes-base.switch",

  "typeVersion": 3.2,

  "position": \[

    128,

    -16

  \],

  "id": "d392ad28-3ece-4605-896c-f063044d6def",

  "name": "Switch"

}

],

“connections”: {

"When clicking ‘Execute workflow’": {

  "main": \[

    \[

      {

        "node": "Edit Fields",

        "type": "main",

        "index": 0

      }

    \]

  \]

},

"Edit Fields": {

  "main": \[

    \[

      {

        "node": "Switch",

        "type": "main",

        "index": 0

      }

    \]

  \]

}

},

“pinData”: {},

“meta”: {

"instanceId": "19ffaddf616f7fa44fd41e6c0d4fbb2136bc4ab598a9460bbea8ba2caab5a094"

}

}

I have created a new workflow from the JSON provided. The problem persists, I still have no ‘output’ connections from the Switch Node.

I have exactly this same issue. I have created other workflows in the past few months with a switch which provides routing. Any newly created switch, or any switch copied from one flow to another, does not provide any routing options.