Desktop Has been disconnected while performing ui action (VM machine)

i publish my process on orchestrator and set trigger for it i work on remote desktop (VM not server)when i go out i run this
%windir%\System32\tscon.exe RDP-Tcp# NNN /dest:console
and replace NNN with session number berofe i log out
it work will but after some time it stop and my process become faulted on orchestrator
any help for that please as i stuck in that ?

Hello @rpa13!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

i run my project on uipath studio and run sccessfully while when i put it on orchestrator to make trigger i have this error … in addition i try to make login yo consle false but the same error
Desktop has been disconnected while performing UI actions.

RemoteException wrapping UiPath.Core.ElementOperationException: Desktop has been disconnected while performing UI actions. —> RemoteException wrapping 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.ObsoleteTaskAsyncCodeActivity`1.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)
any help please ??

Hello @rpa13 ,

Maye this helps:

I hope it helps.

Vasile.

i try to change in my development workflow and it work but still faulted process on orchestrator even the process done ?! any help please from fourm team

Hi @rpa13

Are you trying to execute the process on an already logged in machine, but with a locked screen?

my job is faulted on orchestrator even it complete the whole process ,it run on assistant without any fail … i need to know where is the error
any help for that please?

@rpa13,

Hope, you have put logs while developing it, so you could easily understand where was gone wrong.

Cheers,
Pankaj

2 Likes

i dont know what you mean ,if you have solution please supply me with

@rpa13

As @Pankaj.Patil said you can keep a log message activity to keep a track on which steps it is failed,

So after some activities keep a log message activity. Also check the logs of the job also

Hope this may help you

Thanks

Desktop has been disconnected while performing UI actions.

RemoteException wrapping UiPath.Core.ElementOperationException: Desktop has been disconnected while performing UI actions. —> RemoteException wrapping 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.ObsoleteTaskAsyncCodeActivity`1.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)

i got this error on orchestrator when i trigger job and my job run completed and do what i need to the end but also orchestrator give me faulted

yes, but when screen is locked i have this error because it need to enter password to login to machine so, i change my screen setting to keep screen always unlocked