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:
Start Process of the Application
Attach Login screen Window, activate login screen Window, and Double Click one of the options
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?
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…
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.
@Madhavi_Jaiswal The only way this works is when you click on the Restore button and then alt-tab to some different screen but not minimizing the RDP.
I tested this and my robot can open the browser, log in using Type-Into command and Click commands are also working fine.
Please try this, @llavieri if you still have this issue after almost a year
I am also facing the same issue. When BOT is running and I connect RDP (maximize) then working fine.
The moment I disconnect RDP or minimize it then BOT starts failing. Do I need to make any environment changes as BOT was working fine (with UiPath 2018.2) before upgrading to UiPath 2018.4
Remote desktop connection closed
Sometimes users want to open a Remote Desktop Connection, start running tests on the remote machine, and disconnect the client connection while the tests are running.
In this case, native events (including screenshots) do not work.
To work around this, do the following instead of closing the remote desktop connection directly.
Create a batch file on the remote machine’s desktop (for example: “disconnect.bat”).
Type the following line in the file -
tscon% sessionname% / dest: console
You can get the Session Name by typing “query session” at the CMD prompt (as administrator)
and save it.
Start the tests on the remote machine. It is fantastic!
Do not close Remote Desktop Connection directly from the client.
Instead, double-click the batch file. The session will be ended by the remote desktop.
Native events should now work well with Remote Desktop Connection closed.