I’m going through the Lesson 2 - Practice 1 Walkthrough and I’ve completed the practice. I can run the workflow, but the problem is, after I selected either Yes or No, it will just launch the notepad, and after a few seconds (around 30 seconds), it will display the error
Main has thrown an exception
Message: Desktop has been disconnected while performing UI actions.
Source: Type into ‘editable text’
Exception Type: ElementOperationException
UiPath.Core.ElementOperationException: Desktop has been disconnected while performing UI actions. —> System.Runtime.InteropServices.COMException: Desktop has been disconnected while performing UI actions.
at UiPath.UiNodeClass.WriteText(String text, UiInputMethod inputMethod)
at UiPath.Core.UiElement.WriteText(String text, InputMethod method)
— End of inner exception 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’ve tried restarting UIPath but the same error still persists. Hope anyone can help.
Hmmm… is Open Application considered Ui Automation? Because Open Application is working. In this issue, notepad is launched, but the error is when ‘Type into’ is trying to write something in the notepad.
I’ve tried running UiPath as administrator just in case, but the error still persists.
I am also facing the same issue “Desktop has been disconnected while performing UI actions”,
The scenario is there is two application 1. web application and 2. SQL server, 1st open the we app and do some activity and then go to SQL and execute some queries. and finally come back to web app and do some activity. the problem is SQL queries is taking time to execute (30 m - 3 hr) and the system gets locket out.
one more thing I am using RDP system