After upgrading the UiPath Robot version from 20.10.x to any version above 21.10, process failed with Unauthorized Access error to a NAS folder.
Root Cause: Change in product as per the documentation - Robot Background Process Automation .
Resolution: If a process needs to run in Unattended and background mode, there are 2 options:
- Give rights on the NAS, for the machine and not user, if possible
- In order to use credentials specified in Orchestrator, the following parameter, the UIPATH_HEADLESS_WITH_USER needs to be added in the system environment variable on the robot machine and set the value to True.