# Possible bug on switch with strings

**URL:** <https://community.n8n.io/t/possible-bug-on-switch-with-strings/72271>\
**Category:** Questions\
**Created:** [January 23, 2025, 2:36pm UTC](https://community.n8n.io/t/possible-bug-on-switch-with-strings/72271 "2025-01-23T14:36:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcos\_Capistrano](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/marcos_capistrano/32/54623_2.png) [@Marcos\_Capistrano](https://community.n8n.io/u/Marcos_Capistrano)\
**Post date:** [January 23, 2025, 2:36pm UTC](https://community.n8n.io/t/possible-bug-on-switch-with-strings/72271/1 "2025-01-23T14:36:29Z")

</div>

## Describe the problem/error/question

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/e/be773d1e03efb07ae5728ba203136cc6294f1e16.png)

## What is the error message (if any)?

How can this switch run both on true and false, if im setting it to be is empty on one and is not empty on another?

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/9/6/96427a43e01e535288adbf59b455d9e6ccf3bd37.png)

## Information on your n8n setup

- \*\*n8n version:_1.7.43_
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![affibox](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/affibox/32/55516_2.png) [@affibox](https://community.n8n.io/u/affibox)\
**Post date:** [January 30, 2025, 12:48pm UTC](https://community.n8n.io/t/possible-bug-on-switch-with-strings/72271/2 "2025-01-30T12:48:36Z")

</div>

I wanted to confirm this issue. switch is not passing any data at all on all my tests.  
On existing workflows is not even working when I activate the “allways output data”

---

<div class="post-metadata">

**Author:** ![affibox](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/affibox/32/55516_2.png) [@affibox](https://community.n8n.io/u/affibox)\
**Post date:** [January 30, 2025, 1:07pm UTC](https://community.n8n.io/t/possible-bug-on-switch-with-strings/72271/3 "2025-01-30T13:07:43Z")

</div>

UPDATE:  
I recreated an existing workflow one node at a time and now the switch is working.

BUT… if you apply a a switch after and if the workflow just stops and no data is been output from switch

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/7/5/757a72b8b435b241bec7ee1f897928c5bf9ad1da.png)  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/0/a/0ae4d597a3daa9a1150c8923e1e6b22cb19568e5.png)

This is with the switch directly connected and with the if removed:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/1/5/15e30fe2b0f5af8fb7b07239c7d9e06de11a34e5.png)  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/0/f/0fde2f9b52380030eafa2a59ffc8310069b6cbb2.png)

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [January 31, 2025, 1:48am UTC](https://community.n8n.io/t/possible-bug-on-switch-with-strings/72271/6 "2025-01-31T01:48:34Z")

</div>

Hey @affibox & @Marcos_Capistrano,

Welcome to the community 🙌

Thanks for reporting this, I am going to see if I can reproduce this and get a bug ticket created so we can get it fixed.

I will be back as soon as I have an update for you.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [May 1, 2025, 1:49am UTC](https://community.n8n.io/t/possible-bug-on-switch-with-strings/72271/7 "2025-05-01T01:49:01Z")

</div>

Closed on May 1, 2025, 1:49am UTC

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