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.
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, uninstallUiPath 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.