If Statement Bug – Activities Getting Deleted

I am experiencing an issue with the If statement. Whenever I comment out an If statement, it deletes all the activities inside it. Additionally, when I try to add more activities to an If statement after saving the sequence, it removes all the existing activities within it.

I have already tried restarting my machine and confirmed that I have the latest system package version installed, but the issue persists.

Any solutions to resolve this issue?

Hi @suha_alaqil

Could you still please let us know your Studio version?

Could you please share the sequence as well

I’m using Studio 2023.10

the issue is not with one specific sequence, I faced this issue with all of my projects.

Are you on the latest patch of the 2023.10 Studio, which is: 2023.10.10?

Please share a screenshot or a short video that showcases the issue :slight_smile:

Studio 2023.10.0-beta.14233 - 9/19/2023 Enterprise License
Microsoft Windows 11 Enterprise 64-bit 6.0.7

I’m a new user, I don’t have a permeation to upload a video or attachment

@suha_alaqil
Check the Project Dependencies

Sometimes, issues like this are caused by outdated or conflicting dependency packages.
Go to Manage Packages (Ctrl+P) and check for updates in UiPath.System.Activities, UiPath.UIAutomation.Activities, etc.
Try updating and see if the problem persists.

OR

Ensure UiPath Studio is Updated Properly*

  • Even though you mentioned having the latest version, ensure there are no pending updates:
  • Go to Help → About → Check for Updates.
  • If you’re using UiPath Community Edition, uninstall and reinstall it.

OR

Check for Corrupt Project Files

  • If the issue is happening across multiple workflows, your project files might be corrupted.
  • Try creating a new blank project and reproducing the issue.
  • If it doesn’t happen in the new project, your old project might have a configuration issue.

OR

Try Deleting the Project Cache

  • Sometimes, UiPath caches files that may cause unexpected behavior.
  • Close UiPath Studio and delete the .local folder in your project directory.
  • Also, try deleting the cache files at:
C:\Users\YourUsername\AppData\Local\UiPath

OR

Reinstall UiPath Studio

  • If none of the above steps work, uninstall UiPath Studio, delete related folders, and reinstall a fresh copy.

This Studio version is really strange. Please update to the latest patch of your current Studio, which is 2023.10.10. This might actually fix the issue.

@suha_alaqil

Kindly upgrade the studio and let us know if the issue got resolved