I am trying to run my robot (overnight) through the command line and a temporary self-made scheduler in Python. Unfortunately, I run into the following error code every time:
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: UiPath.Core.ElementOperationException: Timeout reached. ----> System.Runtime.InteropServices.COMException: Timeout reached. at UiPath.UiNodeClass.BringIntoView() at UiPath.Core.UiElement.BringToForeground() --- End of inner ExceptionDetail stack trace --- at UiPath.Core.Activities.ScopeActivity.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)
I believe this might have something to do with Windows automatically logging out (going to Sleep). Since running the same commands does not produce any error. Neither does letting the scheduler run and wait for execution.
The thing is I’ve included code in my Python script to prevent Windows from going to sleep. I’ve tested this code as well, and it works for several consecutive hours.
Moreover, I’ve also disabled all sleep/hibernate settings in Windows.
Another interesting thing to notice is, is that the robot partially executes and does some stuff the first 30 seconds. I assume this is because some code can run without actually being logged on (assuming this is the problem)?
Any advice or thoughts are welcome.