Error when running Published workflow on Orchestrator

I’m running a published workflow on the orchestrator and it gets most of the way done till I get this error.

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
UiPath.Core.SelectorNotFoundException: Cannot find the UI element corresponding to this selector: ----> System.Runtime.InteropServices.COMException: Cannot find the UI element corresponding to this selector:
at UiPath.UiNodeClass.FindFirst(UiFindScope scope, String nodeID)
at UiPath.Core.UiElement.FindFirst(FindScope scope, Selector selector)
— End of inner ExceptionDetail stack trace —
at UiPath.Executor.WorkflowRunner.EndExecute(IAsyncResult result) in D:\a\1\s\Robot\UiPath.Executor\WorkflowRuntime.cs:line 208
at UiPath.Core.Activities.InvokeWorkflowFile.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 @seanp92 - This is due to Selector issue. Find out the place where your workflow is trying to access a particular element which is not found on the screen. Either Type, Click or any other activity.


Please check the studio logs to find the error.
Your workflow is failing to find the UI element (selector).

Another way to find the error -
Run the workflow directly from the studio and find the error.

Karthik Byggari

Hi @seanp92,

It’s either a faulty selector as guys mentioned before or the robot is not able to access the object when executed in the unattended mode - do you have simulate click/type checked on your activities ?

Best Regards,