Unable to run the bot

21.10.7+Branch.support-v21.10.Sha.4fc9759469a976c6aff9aff581b459a31fa01cd9

One or more errors occurred. (Access is denied.)

RemoteException wrapping System.AggregateException: One or more errors occurred. (Access is denied.) —> RemoteException wrapping System.ComponentModel.Win32Exception: Access is denied.
at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited)
at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
at System.Diagnostics.Process.GetOrOpenProcessHandle()
at System.Diagnostics.Process.EnsureWatchingForExit()
at UiPath.Service.UserHost.AttendedServiceProxy.RegisterClientProcess(Int32 clientPid)
at UiPath.Service.UserHost.StudioOperations.Prepare(ClientProcessMessage message, CancellationToken ct)
at UiPath.Service.Core.Utils.TaskUtils.WithShortWait(Task task, TimeSpan wait)
at UiPath.Service.UserHost.StudioOperations.<>c__DisplayClass7_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.CancellationHelper1.Invoke[TResult](TId requestId, Func2 func)
at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func2 exceptionHandler) --- End of inner exception stack trace --- at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) at System.Diagnostics.Process.GetOrOpenProcessHandle() at System.Diagnostics.Process.EnsureWatchingForExit() at UiPath.Service.UserHost.AttendedServiceProxy.RegisterClientProcess(Int32 clientPid) at UiPath.Service.UserHost.StudioOperations.Prepare(ClientProcessMessage message, CancellationToken ct) at UiPath.Service.Core.Utils.TaskUtils.WithShortWait(Task task, TimeSpan wait) at UiPath.Service.UserHost.StudioOperations.<>c__DisplayClass7_0.<<RunJob>b__0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.CancellationHelper1.Invoke[TResult](TId requestId, Func2 func) at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func2 exceptionHandler)

@YUGAN_NITHISH_KUMAR

Where are you getting this error?

Any specific activity?

Cheers

The issue appears due to a lack of privileges. Note that it is an expected behavior to not allow the Robot to run as an administrator when triggered from the Orchestrator considering the implications that it carries for an enterprise organization.

  • For example: The Orchestrator user who access to trigger a job (assuming that will trigger a Robot in admin mode) can make an automation on the machine to modify the registries, windows settings or other key configurations in the machine, etc…,

The cause of the issue is due to the target application where an automating needs a higher privilege to interact with it.

The solution for this would be to

  • Run the target application in a non-elevated mode or low Integrity level after which the UiPath Robot will be able to identify the application elements.