Uipath can't perform clicks on a minimized RDP session


#1

This is a script that is running on a Windows Server Machine where Studio is installed. The script needs to interact with a Windows Desktop application that is installed on the same server. The application does not use Citrix at all. And it works perfectly fine when I have the RDP session maximized. This is the logic that the script follows once that it starts:

  1. Log

  2. Start Process of the Application

  3. Attach Login screen Window, activate login screen Window, and Double Click one of the options

  4. Log “true”

  5. If error thrown, Kill Application process, Log error and try again

For this particular run, the first thing that I do is minimize the RDP session. In the log that is displayed in the image, you can see that it failed several times before I actually maximized the screen back. After this, it printed "true" as expected. The AttachWindow Activity seem to work well. However, the error is thrown at the double click.

I saw somebody recommending using hotkeys instead of clicking. This application does not accept hotkeys. It has to be a click.

I also saw in this post that modifying the registry could make it work. However, it did not in my case. It still fails.

How should I attack this?

Thanks

EDIT: Forgot to mention that I also tried using Launch Workflow Interactive with this piece of logic and it did not work. Also, everything is using Selectors. I am not using anything else.

I really thought that Uipath could work completely unattended


#2

I don’t think you can minimize an RDP session while a process is running; from my understanding, it disconnects your robot once you do.

One thing you can try is instead of minimizing just bring another window into focus.

It seems like this could be changed in the registry, but I’m not sure what value to change if you can.

Also, verify that in your UiPath.settings file that you have “LogonToConsole” to false.

Hope this helps

Regards.

EDIT: I’ll also mention if you use “Launch Workflow Interactive” to kick off your workflow, it might help resolve screen and resolution issues causing problems to your robot. Thanks.


#4

I don’t think you can minimize an RDP session while a process is running; from my understanding, it disconnects your robot once you do.

Do you think it will be possible with Orchestrator? Having the Robots their own credentials…

It seems like this could be changed in the registry, but I’m not sure what value to change if you can.

I tried this and it did not work

Also, verify that in your UiPath.settings file that you have LogonToConsole to false.

Verified

EDIT: I’ll also mention if you use Launch Workflow Interactive to kick off your workflow, it might help resolve screen and resolution issues causing problems to your robot.

Tried it too

Thanks for trying!


#5

It works just like the user logging in, with slight differences. The Launch Interactive should simulate the unattended if you were curious by checking its logontoconsole parameter, then it will kick you off the server to run (but you can log back in to watch it if you wanted.

If there are problems with the process where Exceptions are being thrown and Retries, then I would suspect there’s a flaw with the workflow. If that’s the case, then I’d look at what the Exception says and on which activity.


#7

Not really, as I said, the exceptions are only thrown when I minimize, not when I attend the robot

Thanks for the help


#8

Is it throwing the Exception on the Attach Window with Selector is not found?
I was thinking what if you have “Visible” unchecked. If it is you might try having it Visible instead.

Just throwing out more ideas.

Hope you find a solution.


#9

There are two ways to minimize RDP.

  1. Using direct Minimize button - With this method bot won’t work as it disconnects the session

  2. Click on Restore button(next to Minimize) and then Minimize it. It works with this method as the session still remains connected.

Please try Method #2 to run the bot in minimized RDP.

Regards,
Madhavi


UI path throwing an error when we minimise the remote desktop session in which it is running, here i am using desktop recording to record a mail merge action. Please advise?