Facing code disappearance issue from switch case

Hi everyone,

I’m encountering an issue where the code inside my Switch Case activity disappears. I develop and save the code within the Switch Case, but when I close and reopen the workflow, only the Switch Case activity remains—the code developed inside the Switch Case is gone.

Has anyone else faced this issue recently? Any guidance on how to resolve it would be greatly appreciated!

1 Like

@Priti_Panchal

Welcome to the community

which version of studio is it?

Cheers

Are you using StudioX or Studio? Also are you using sequence Switch or Flow Switch?

Hi @Priti_Panchal,

There are two possible reason

  1. You missed to save the xaml before you close.
    2.Have you updated any packages to downgrade?

Regards,
Arivu

@Priti_Panchal,

It was a known bug in some version of UiPath.System.Activies. I don’t remember the version but try upgrading or downgrading the package version and check.

I am using 2025.0.157 Enterprise licence version and for system activities I am using 24.10.7

I am using Studio, and within that, I am using Sequence Switch.

@Priti_Panchal

In latest community there are reported issues like this…try to change version of system packages to 23.x and check

Cheers

I’m experiencing the same issue—my code has disappeared.

I’m using UiPath Studio version 2025.0.157 - Enterprise and first noticed the problem while working with the UiPath.System.Activities v25.2.1 package. I downgraded it to v24.10.7, but the issue persisted.

During my investigation, I discovered something unusual: an additional hidden workflow with the same name as the affected one. Please see the following snippet.

This unexpected workflow appears to be the most primitive (initial) version of my workflow. Upon opening it, I found that it contained older activities that are now missing from my latest version.

I’m not sure where this hidden workflow is coming from or why it’s interfering with my current version.

If you’re facing the same issue, I suggest checking your system settings, making all files visible, and verifying if a similar hidden workflow exists.

Has anyone else encountered this?

Hi,

I am facing the same issue. Do we know how to resolve the issue? I was not able to see the initial version either.

Thanks for help in Advance!

I am facing the same issue using Studio Desktop version 2025.0.157. Using UiPath.System.Activities v25.4.4. The case seems to break if I try to use a multiple assignment activity. The workflow will stop recognizing that the case exists, the case will stop recognizing any variables in the workflow and the outline will not recognize the case’s sequence. If I reopen the xaml, the case will be blank and no longer editable.

When I stopped using the multiple assignment activity in the case, this issue does not happen.