Quantcast
Channel: UiPath Community Forum - Topics tagged error
Viewing all articles
Browse latest Browse all 4384

Robot seems to not find Virtual Desktop/Ui Elements when running fully unattended

$
0
0

Hi,

I know this topic has been asked several times but after hours of reading, I could not find any solution solving the issue for me.

My problem:
I have a rather simple workflow, reading and moving a few files and then performing some activities in an application. I run it as an unattended robot an a virtual machine. When I connect to the VM via remote desktop connection the workflow works fine, but when Im not connected the process fails as soon as a UI interaction is involved (so the renaming and moving the files still works, but the application does not start). I disconnect from the session, I dont just minimize the rdp window. I always start the robot via orchestrator (when im connected to the VM as well as when im not).

My errors:
I used to start the application via run prompt, which I opened with Send Hotkey Win+R, but this resulted in an error “Desktop has been disconnected while performing UI activities”. So I changed it to double clicking on the application icon, which resulted in “Click element. Timout reached.”

I tried to take a screenshot, but when I try to do this, the error says: “System.ComponentModel.Win32Exception (0x80004005): The handle is invalid”. Actually my workflow always takes a screenshot, when an error occures and while the error message is properly written in my error folder, the related screenshot is never saved. So taking screenshots seems to also not work, as long as I am not connected to the VM.

Tried solutions:

  1. I set login to console to false and the resoultion (height=768, width=1366 and depth=32) in the robot settings in orchestrator.
  2. Since this didnt work I set the same settings in UiPath.settings on the VM.
  3. I created a DWORD parameter in registry of the VM RemoteDesktop_SuppressWhenMinimized = 2 under HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Terminal Server Client and a DWORD parameter KeepAliveEnable = 1 under HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server
  4. I set both parameters also on my local machine connecting to the VM

My setup:
In case this makes a difference: I use Studio Pro Enterprise Edition 2020.10.0 and have a properly licensed unattended robot. The resolution settings mentioned above is exactly the resolution, which i use, when developing the robot. I develop on my local machine, but have access to another studio on the VM.

For me it just feels, as if the desktop is fully gone, as long as I am not connected to it. Any ideas highly welcome.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>