Desktop Has been disconnected while performing ui action

Try this:

1 Like

Thank you, it’s worth a try, although this happens on a machine that has the process started from Orchestrator (using credentials).

2 Likes

I am also getting same error while running process form Orchestrator (using credentials). and getting this error sometime. Please help to resolve this.

Did you find a solution for this??.

Could you give us more errors about the environment, uipath version, os?
@qateam

Desktop has been disconnected while performing UI actions

This occurs when a user is connected with RDP to the Robot machine and the RDP disconnects at some point. We recommend to sign off all the users from the Robot machines before executing a job.

Note: If a RDP connection is started on the robot machine and this machine lose internet connection (even for few seconds), the robot will throw “Desktop has been disconnected…”

To avoid this behavior you have to follow this guide: Running Tests in Minimized Remote Desktop Windows | TestComplete Documentation

Let me know if this works.

Andrei

2 Likes

Hi there,

I found a way to execute a robot on a remote machine without having to remain connected to it through Remote Desktop Connection and I thought I would share. I created a batch file that contains the following:

for /f “skip=1 tokens=3” %%s in (‘query user username’) do (
%windir%\System32\tscon.exe sessionname /dest:console /password:password
)
exit

This disconnects the user from the remote machine but doesn’t lock the machine, which allows programs, including the robot, to continue to run. The batch file must be run as administrator, after the robot is started. These links provide more information: here and here.

It goes without saying this is far from an ideal solution, so tread carefully.

15 Likes

Hello Badita,

I am facing the same above mentioned issue all the time and in the same place.

I cannot perform a click action on a particular place all the time when minimizing the RDP it works perfectly fine when I see it.

I have followed all the steps, created the Remote suppress when minimized and set it value to 2 but even after it is not working.

Can you suggest me any best solution for this.

Regards,
Raviteja.

hi, have you solved this problem now? I met the problem again and again.

Hi! I’m facing the same problem right now, I’m working with Citrix. My artifact works with images, it’s developed on my computer and opens the virtual machine through Citrix.

If anyone know how to solve this issue or has solved this issue before, please tell me! It would really appreciate it.

Regards,

Its happening in same place for me.Any fix

[Error] Desktop Has been disconnected while performing ui action.
Facing same error while triggering the bot from Orchestrator. Any fixes or updates ?

Hi,

It may occur if any of the following issues happened

Someone has opened server/machine while bot is running from orchestrator.

UiRobot services got disconnected

In case, if bot machine doesn’t response to orchestrator for long time then it might happen

Please check if any you have faced any of these issues. I don’t get any resolution for this issue in UiPath.

Thanks,

SUJITHA V

I’ve seen that this problem can be resolved (or greatly mitigated) by setting the loginToConsole value to false in the UiPath.Settings file on the robot. You will need to be a local administrator on the robot to change this setting.
Chris

2 Likes

If none of the above worked, you could try adding this to your registries.

1 Like

yes. I have execute process ‘XML mapping’ in uipath studio, on that time my computer gets log off. if i execute some other process in uipath studio. This issue not happend.

how to do this.

You should be admin on your machine (where uipath studio is installed) and have access to change the file “UiPath.settings”, changing the key “LoginToConsole” to false. Save the file and execute again your job at Orchestrator.

3 Likes

This issue will happen when you are signed in to remote desktop from your or some other user id. Try signing out all the logged in users and try running your process again. This worked for me.

1 Like

I know its an old issue. But i still encountered it this today.
The flow runs fine when launching it from studio or from the robot manually, but you get a “desktop disconnected” error when launching it from Orchestrator.

In my case the problem was a “SEND HOTKEY” activity with an “ENTER”. I did not use indicate the element and this caused the RDP to close instead of just typing the enter where it typed its last action.
image

Solved it by using “indicate on screen” on all the items pointing to the correct window.

Hope this helps somebody in the future.

1 Like