How to resolve the issue "access to the path 'C:\Users\xxxxxxxxxxxxxxxx\.nuget\packages\xxxxxxxxxx\xxx\xxxxxxxxxxx.tmp' is denied."
Issue Description:
The robot encounters difficulties in downloading one of the custom packages built internally due to the package folder being renamed and fails with the error "Access To The Path Is Denied".
Actual Error Message:
'C:\Users\xxxxxxxxxxxxxxxx\.nuget\packages\xxxxxxxxxx\xxx\xxxxxxxxxxx.tmp' is denied."
Root Cause:
The root cause of this issue is the alteration of the package folder's name, making it unrecognizable or inaccessible to the robot.
Resolution:
- Open the affected process in Studio.
- Run the process from Studio first to check for any package-related errors.
- If encountering any errors related to packages while upgrading or modifying, navigate to 'Repair Dependencies' and publish the updated XAML again.
Access Rights:
Also, it's crucial to ensure that the Robot user has all required access rights to the drive and relevant folders. These access rights can be granted as follows:
- Confirm that the Robot user has Read, Write, and Modify permissions to the project/workflow folder.
- Allocate full control to the robot user over the UiPath folder located in:
C:\ProgramData\UiPath
C:\Users\\AppData\Local\UiPath
-
Provide full control to the Packages folder located in:
C:\Users\\.nuget\packages
Remember to replacewith the actual username of the bot.
To do this:
- Right-click on the relevant folder and select 'Properties'.
- Navigate to the 'Security' tab.
- Add the required permissions to the relevant user.
The image provided below will further clarify these instructions: