Unattended Flow Failing on Headless Machine

Hi. I have a headless (no monitor) Windows machine that I access using Remote Desktop. I have successfully created and run attended workflows on that machine. When I run the same processes unattended, the Chrome UI elements are not being found.

ATTENDED (Via Remote Desktop):

  • Login to machine via Remote Desktop
  • Launch process
  • Watch process run in RDC window, opens chrome, finds all UI elements successfully

UNATTENDED (W/ Remote Desktop)

  • Login to machine via Remote Desktop
  • Launch job from UIPath Cloud
  • Watch process run in RDC window, opens chrome, finds all UI elements successfully

UNATTENDED (Without Remote Desktop)

  • Close Remote Desktop Session/Screen
  • Launch job from UIPath Cloud
  • Watch logs
  • See exception “UiPath.UIAutomationNext.Exceptions.NodeNotFoundException: Could not find the user-interface (UI) element for this action.”…

I wonder what is changing when I end the Remote Desktop session which prevents the unattended process from running successfully?

Thank you.

Hello @jon4378

I hope the robot is installed in the vm. Did you tried minimizing the the VM and execute it and check

Thank you. I edited my post above, to illustrate that the robot is installed, and can run, but only if I have the RD screen open. DOes this make more sense now?

@whie minimizing the VM also facing the same issue??

If I start out with the RD session minimized, it will work fine, but eventually the RD session will time out and cause the process to fail. My ultimate goal is to be able to run these processes without any RD session active. I have a “Dummy Plug” installed on the machine which is supposed to simulate a monitor.

In the end, I was able to get this working with 1) Using Anydesk, instead of remote desktop, for remote login. 2) Using the dummy HDMI plug display emulator (available on amazon) and 3) Setting the screen resolution in windows to match the one used when creating the UI element activities.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.