Unable to checkout branch - GlobalVariablesT1PNoYwrqg.dll is in use

Hi All,

I’m having issue checking out branch due to error code:

Switching branches is not possible because the file ‘.local.globalvariables.tmp\GlobalVariablesT1PNoYwrqg.dll’ is in use. Please close any program that is using it and try again.

Problem is, I’m trying to do this from UiPath Studio and somehow it’s using the file and preventing me to switch branch.

I’ve tried cloning the code from remote to local in different folders and still facing the same issue.

Any ideas?

Could you maybe create a zip (use 7zip) with the project and share it with us?

This seems like a bug that cannot be easily reproduced.

Hi @alexandru,

It’s company code so I’ll need to check first with my supervisor.

To give more context, we use Gitlab and UiPath 2023 with on-prem Orchestrator.

My daily routine is generally as follows:

  1. At start of the day, checkout latest code from Gitlab repo into a new folder
  2. By default, master branch is downloaded
  3. There’s always a few changes to undo before I can change to dev branch
  4. Code change throughout the day on dev branch
  5. At the end of the day, publish to orchestrator then push commit to Gitlab

So I have multiple local folders backdating to different days code was checked out.

The error begin happening one morning where I checkout latest code and unable to change branch. There’s also no changes to undo when this happens.

I’ve tried checking out the code multiple times to separate folders to no avail.

Current workaround is to use the last working folder already connected to git on dev branch.
I’m still able to publish to orchestrator and commit to gitlab in this manner.

Merge request from dev to master is done on Gitlab by another team member.

@Keegan_Kosasih can you try editing the gitignore file to exclude .local folder? And retry after that to commit.

Sadly I didn’t use gitignore at the start…

I was able to get around the issue by doing the following:

  1. On local machine, make a copy of the dev1 branch containing all latest code as backup
  2. On GitLab, create a new dev2 branch out of master branch
  3. On local machine and from UiPath Studio:
    3.1 checkout master branch in a new folder
    3.1 switch branch to dev2
  4. On local machine, manually copy paste latest code from dev1 folder to dev2 folder
  5. On local machine and UiPath Studio:
    5.1 Refresh folder
    5.2 Publish dev2 branch to orchestrator and commit to gitlab
  6. On GitLab, delete dev1 branch

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.