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