Lost code in Studio

Hello. My problem is the following. After a few days of coding, the studio stopped saving my code. To clarify - I save the file after each activity. What could it be?

Hi @zoya.dzhuneva

Have you unexpectedly click on Save to cloud instead of Save or Save all. If yes this code will be stored in the UiPath Studio web in Orchestrator. You can download the updated code from there.

Hope it helps!!

How can I do this. Will you tell me, please?

How can I do this. Will you tell me, please?

Okay follow the below steps,

→ Login to Cloud.UiPath.Com → Go to Studio web → Open → Go to Automations → Find your project → Click on 3 dots → Click on Download.

It will download to the Local space.

Check the below image for better understanding,

Hope it helps!!

Thank you very much! But no project/projects there…
Тried several times to continue/restore code but after closing it doesn’t save. Sometimes a whole block of activity disappears …

Hi @zoya.dzhuneva

Do u have sufficient storage on the drive that has the project?
Or
Do u have multiple copies of the project and tend to open a wrong one sometimes?

Yes, I have several copies of the project. But I work in only one. Others are just storage.

Yes, have several copies. But I work only in one directory, others are just backup storage.

In the Studio Home page it will show the latest code, you may be saved the updated code in a different folder. Check each and every code in all folders. It might updating some where.

when you click on save it will surely save in your local space.

Hope you understand!!

This maybe causing the issue. Check the version of the Project you are working on.

Or

Check the “last modified” date and time of these copies. You will get an overall idea, just to make sure

I checked copies, new code which I lost is not saved there. Sometimes an activity which gets lost can’t be commented, just deleted. An no matter if I press Save, when close project it gets lost.
Another case is when no obvious problem and part of newly added activities are not saved. Sometimes old activities also disappear, for example the entire switch case, if I added something there…

Well, I am not sure how to recover lost activities. But if you are facing this issue often, use a Version Control System to take care of your projects henceforth. UiPath offer various VCS to work with.

1 Like

Thank you! Sure I will read them. But I’m pressed for time right now. That’s the reason for copies.

1 Like

Thanks for the useful information. I will pay attention.

Please open the project from Folder instead of opening studio first and getting the project from recent projects to avoid confusion

Once it is open from the project folder starting with Main xaml–> Make sone changes, save it and close studio. Open again from folder only and confirm if the changes are reflected or not.

I am requesting this to confirm the issue as this is not a normal behaviour

1 Like

Did it several times before writing here …

I would suggest you to upgrade the Studio and give a try

This is 2000% the only correct response to this thread… do yourself a favor, do not build out anything without having a git repo setup for it (you will thank @V_Roboto_V for this advice)!

2 Likes