[UIPath] "You have exceeded your profile storage space..." Error when running on Windows Server

Here's something we encountered recently that kept us from running a task smoothly. We migrated our scripts to a virtual server machine which is very different from where we developed the script (desktop). Our first struggle was getting rid of this pesky profile storage space error that kept on popping up midway into running a task.


Turns out when you run a robot, it extracts the robot package and downloads all its dependencies on a dedicated folder inside the local user profile directory. Usually here: C:\Users\<username>\.nuget\packages

Which means there's a copy of a robot script being created for every user who logs in and runs the same task. Imagine the waste of space.

We didn't realize this was a problem because this error doesn't come up on a regular desktop. Also, I'm pretty sure our desktop profile storage space isn't just 50MB haha. 


There are 2 ways to get rid of this error.

One is to configure UiPath.config to assign a dedicated folder where the robot extracts the packages to so it doesn't flood the user profile. The other is to increase or unset your local profile storage space. Let's discuss both:

Option 1

Thank God I ran into this forum post while looking for solutions!

  1. Open uipath.config on a text editor. It's usually inside
    C:\Program Files (x86)\UiPath\Studio\uipath.config

  2. Add this line inside <packageSettings>

    <add key="packagesInstallationFolder" value="D:\Data\NugetPackages\" />

    Replace the text in red with your preferred directory, somewhere away from your user profile directory, preferably in a different drive. I set ours inside D:\Data because sometimes regular accounts don't have access to C:\ drive on a server



  3. Save uipath.config and restart the robot service for the changes to take effect
    Open Task Manager >> Services >> Right click on UiRobotSvc and restart the service


  4. Run a robot task to test. The extracted files should now be saved at the packages installation folder you set up.
Option 2

For this option to work you need to have admin rights.

  1. Run gpedit.msc or open your Local Group Policy Editor
  2. Navigate to User Configuration >> Administrative Templates >> System >> User Profiles



  3. Open the property Limit Profile Size and adjust the max profile size or set it to Not Configured



  4. Apply to save changes and you're done.

Hope this helps! :)

Share:

How to deactivate UiPath license locally

Here's how you can deactivate your UiPath license yourself so you can use the license key on another machine. Granted, you still have access to the local machine where UiPath is installed. Otherwise, get in touch with UiPath support for a deactivation request.

Alright...


1. Login to the machine where UiPath is insalled
2. Open the command line and run the following:

"C:\Program Files (x86)\UiPath\Studio\UiPath.LicenseTool.exe" deactivation-request


Make sure the location of UiPath.LicenseTool.exe is correct


3. Copy the resulting Deactivation Token
4. Navigate to https://activate.uipath.com and paste the deactivation request token on the text area



5. Click the Deactivate License button and you're done



Now you can use the same license key on another machine. If it doesn't work automatically right after you deactivated the license key, try the manual activation option instead. 
Share:

How to create a "run as different user" shortcut for SQL Server

Problem: I always need to open SQL Server using my admin account but I don't want to keep on doing right click + run as different user, then type my admin username and super long admin password.

My solution? I created a shortcut that launches SQL Server using a different user. Now all I have to do Run "sqlserver" and the app will automatically open using my admin account. That's a major reduction in keystroke yknow! Hahaha



How:

Create a shortcut with the following target and place it in your user folder.

C:\Windows\System32\runas.exe /savecred /user:domain\surfandperf-admin "C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\Ssms.exe"


In detail:

  1. Navigate to where your SQL Server executable file is.
    Usually it's inside C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\ as ssms.exe
  2. Right click ssms.exe >> Send to >> Desktop (create shortcut)
  3. On your desktop >> right click the SQL Server shortcut created >> go to Properties >> update the target to this:

    C:\Windows\System32\runas.exe /savecred /user:domain\surfandperf-admin "C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\Ssms.exe"

    Basically I just prepended the target with the red text, making sure to replace the /user part with the username I want to login with.

    I used /savecred to save the password for future launches


  4. Move to the shortcut to your user folder and rename it with whatever you want the shortcut name to be

  5. Now you can launch it using the run dialog.


On first launch it will ask for a password.



Hope it works! I really just want fewer clicks and keystrokes for everything hehe.

Share: