I have a process which needs to work in background. When the process is not background, it works correctly. But when the process is background, process gets error and cannot access the file path.
The interesting part is when i run the background process with UiPath Assistant, it works too.
So my problem is, normal process and background process with UiPath Assistant works, but background process which triggers from Orchestrator cannot works. (Cannot access the path)
Maybe screenshot will help.
First row is background and triggered by Assistant. Second row is background and triggered by Orchestrator. Third row is normal process and triggered by Orchestrator.
Is that location a user specific location or need admin right?
as background process generally starts in session 0 that means in a different session so if file is open or locked or needs admin rights to access that location then there is a possibility you see this error.
Thanks for the response, is the Orchestrator Robot account need to be admin or the Windows account need to be admin?
PS: The windows user of robot and the Orchestrator user of robot is administrator. I can manually access the file path with this user and in the same machine.
I checked the topic thanks, but the user is admin and has all privilages.
When i start the process from orchestrator, first the HOST IDENTITY is RPAROBOT. But after a few seconds HOST IDENTITY changes to NT AUTHORITY\LOCAL SERVICE and the process fails.
I made the environment variable UIPATH_HEADLESS_WITH_USER to true but still getting error.
In the latest upgrades yes the username with change that is expected behaviour
Is this what you have tried because this is the resolution provided as well
May I know is the path the bot is trying to access is a user specific folder? If so can we move the location to some generic one like c:\bots or some place which is not specific to the user
As Expected good that at least access to some folder is there so we know its working
User locations is expected because generally when you login to your computer and try to open any other user folders you get a prompt . SO may be once you have to login and handle the prompt for user folders to be accessed. But I dont think we can login as NT Auth user
But for granting access to folders/shared folders you can try this
If that does not work then you need to use either a sharepoint or file transfer to access the files/share the file