I’ve just connected my first robot to the orchestrator which worked fine but when I run it from the orchestrator I always get a ‘selector not found’ error. This does not happen when I run the robot in the UiPath studio. It executes all excel activities when ran from the orchestrator but fails with opening the IE browser.
Any suggestions why this happens and how I could fix it?
Info: Cannot find the UI element corresponding to this selector:
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 System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
What is exactly the activity that is throwing the error? And there is a change that something is failing and the browser is not really open on the moment the activity is being performed?
Hi @juka
if the browser is not open when performing a ui activity it throws error.
use some delay until the browser is opend for the activity throwing error.
the first thing it should do is to open the browser but it seems like it doesn’t even try to do that and then it fails with the first activity that should be executed on the UI in the browser which is a ‘set input’. I’ve ran the process more than 60 times in the studio and never had a problem with that.
Hi @balu,
I tried that but unfortunately it doesn’t work either. Seems like it doesn’t try to open the browser at all. In the studio it works perfectly fine.
As you say that Excel activities all work and then it has problems with browser activities, probably it is running in a session on the machine with no DCOM permissions. Check if you have run as batch job permitions on the user you are running.
Follow this https://danblee.com/log-on-as-batch-job-rights-for-task-scheduler/ and try again