Issue:
- After adding 2 cases in a Switch activity, the “Add Case” option becomes disabled.
- UiPath shows the validation error:
“This value is used elsewhere. Please choose a different one.”
- However, all case values are unique.
Example:
Expression:
“3481”
Cases:
“3481”
“3488”
Expected Behavior:
UiPath should allow adding multiple unique cases.
Actual Behavior:
Studio incorrectly detects duplicate values and prevents adding new cases.
What I already tried:
- Updated all packages
- Recreated the Switch activity
- Created a new Switch from scratch
- Restarted Studio
- Used String and Int32 types
- Cleared cache
- Created a completely new workflow
Still facing the same issue.
UiPath Studio Version:
[Community License - 2026.0.193.STS]
is anyone facing same issue?
@Shubhangi_Gunjal_PM_AM
Can you check the argument type what you provided for switch activity that you can see in properties section of Switch activity
I am passing String as type
@Shubhangi_Gunjal_PM_AM
got your problem, you are not passing the value for case section, you need to pass the values for each case, there you can add more case values
Switch activity one case section with empty condition, thats the reason you are not able to add the next case section.
Click on case and pass your match value there you can go by adding the case scetion
Happy Automation
YK
Hi @Shubhangi_Gunjal_PM_AM
Could you please check once Whether you have passed the value under properties of both case values
Hope it helps!!
Thank you, YK, now its working as per your solution.

Thank you for the help, and yes that’s the reason why I was not getting expected result, Now its working.
Hi @Shubhangi_Gunjal_PM_AM,
This usually happens when one of the existing Switch cases is left empty. Even if your visible case values are unique, UiPath treats the empty case as a duplicate placeholder and disables the “Add Case” option.
Please check all Case sections and make sure every case has a proper unique value assigned. Once the empty case is filled, you should be able to add more cases normally.
Example:
Expression Type: StringCase 1 → "3481"Case 2 → "3488"
After assigning values properly, the validation issue should disappear.
We need to provide the correct argument type, such as String, Int32, or Double.
@Balachandrasekhar_C Yes, the argument type is also important for the Switch activity. The Expression type and Case values should match correctly (String, Int32, Double, etc.).
In this issue, the main problem was that one of the case sections was left empty, so Studio treated it like a duplicate placeholder and disabled adding new cases. After assigning proper unique values to each case, it started working correctly.