Robot fails in unattended mode

Hi. I deployed a process to a robot which resides in a Windows 2019 server in unattended mode. When I manually start the robot during the remote session, everything works fine. But when I start a job in Orchestrator with the remote session being closed, the selectors are not finding the elements on the application (which in this case is Adobe Acrobat Pro). What’s wrong here?

Here are the errors:

Cannot find the UI element corresponding to this selector: <wnd app='acrobat.exe' cls='#32768' idx='*' /><ctrl name='Context' role='popup menu' /><ctrl name='Background' role='menu item' />

Click 'menu item Background': Cannot find the UI element corresponding to this selector: <wnd app='acrobat.exe' cls='#32768' idx='*' /><ctrl name='Context' role='popup menu' /><ctrl name='Background' role='menu item' />

Job failed. Reason: Activity timeout exceeded RemoteException wrapping UiPath.Core.Activities.ActivityTimeoutException: Activity timeout exceeded at UiPath.Core.Activities.AnchorBase.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom) at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom) at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at UiPath.Executor.BaseRunner.EndExecute(IAsyncResult result) at UiPath.Executor.InProcessRunner.EndExecute(IAsyncResult result) at UiPath.Core.Activities.ExecutorInvokeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Hi, maybe needs to check your robot if following:

  1. Click, Type Into : Checked SimulateType (True), SendWindowMessage not Selected (Not False)
  2. Send Hotkey : Checked SendWindowMessage

I tried. The robot won’t operate on either of those. I don’t know why but it happened before like some apps have problems with Simulate Type or Send Window Message in my experience.

Also, can use steps from this article:

In my case, when i checked SimualteType the most of parts ran without other changes, but 1-2 selectors needed to defined again.

2 Likes

What is the Robot type you are using?

1 Like

I guess u have a resolution issue. as you said it worked when you remote. normally, unattended robot will use default resolution size 1024x768.

my suggestion is add resolution size on log message, if you found the size is diff. let me know.

2 Likes

The activity may needs that showing front window to find element or anything else on remote session.
You do not close the remote session to run it well.

1 Like

Thank you @irahmat it worked. And thank you all for taking the time :blush:

It’s Unattended.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.