Skip to content

Commit e38f22f

Browse files
committed
Additions
1 parent 986105c commit e38f22f

6 files changed

Lines changed: 58 additions & 1 deletion

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: Error: The remote desktop was not found
3+
description: Solves an issue that occurs when on runtime the flow fails with 'The remote desktop was not found'
4+
ms.reviewer: amitrou
5+
ms.author: iopanag
6+
author: JohnPanagiotopoulos
7+
ms.custom: sap:Desktop flows\UI or browser automation
8+
ms.date: 03/03/2025
9+
---
10+
# Error: The remote desktop was not found
11+
12+
This article helps you resolve an issue you may encounter when a flow fails with error 'The remote desktop was not found'.
13+
14+
## Symptoms
15+
16+
A flow using RDP/Citrix automation used to run successfully but it started failing with error 'The remote desktop was not found'. It might even never run successfully. This is more common in Citrix Virtual Apps.
17+
18+
## Cause 1
19+
20+
The RDP Window/Citrix Desktop/Virtual App might have changed name since when the elements were captured and tracking them with the old name fails.
21+
22+
### Resolution
23+
24+
You can repair the selectors used to retract the RDP Window/Citrix Desktop/Virtual App like normal window selectors:
25+
26+
1. Make sure the affected RDP Window/Citrix Desktop/Virtual App is up.
27+
2. Find the desktop element that has the problem in the "UI Elements" pane on Designer and double click it to open the its selector editor.
28+
29+
:::image type="content" source="media/error-remote-desktop-not-found/control-repo-desktop.png" alt-text="Screenshot of the Power Automate elements section with a Citrix desktop element highlighted.":::
30+
31+
3. Click on "Repair" button and capture the new Desktop/App. Check the suggested changes and accept them.
32+
33+
:::image type="content" source="media/error-remote-desktop-not-found/rdp-selector-builder-repair.png" alt-text="Screenshot of the Power Automate selector builder window with the repair button highlighted":::
34+
35+
4. After Accepting the changes, Click on the "Test" to test the new selector.
36+
5. [Optionally if needed] You can use the "New" Button to add additional fallback selectors for the desktop.
37+
38+
## Cause 2
39+
40+
The usage of Citrix Virtual App with certain applications causes the creation of incorrect target desktop selector using ordinal, especially when interacting with combo box listes.
41+
42+
### Resolution
43+
44+
1. Make sure the affected RDP Window/Citrix Desktop/Virtual App is up.
45+
2. Find the desktop element that has the problem in the "UI Elements" pane on Designer and double click it to open the its selector editor.
46+
47+
:::image type="content" source="media/error-remote-desktop-not-found/control-repo-desktop.png" alt-text="Screenshot of the Power Automate elements section with a Citrix desktop element highlighted.":::
48+
49+
3. Check if the selector is using ordinal (eq is checked). If it uses, **uncheck** it and save it.
50+
51+
:::image type="content" source="media/error-remote-desktop-not-found/rdp-selector-builder-ordinal.png" alt-text="Screenshot of the Power Automate elements section with a Citrix desktop element highlighted.":::
52+
53+
4. Click on the "Test" to test the new selector.
Loading
Loading
Loading
272 KB
Loading

support/power-platform/power-automate/desktop-flows/ui-automation/ui-rdp-automation/rdp-no-highlight.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,15 @@ The communication with the remote agent components doesn't work.
6565
Set the **Virtual channel allow list for DVC** policy with the following values:
6666

6767
- `C:\Program Files (x86)\Power Automate agent for virtual desktops\PAD.RDP.ControlAgent.exe,Microsoft.Flow.RPA.Desktop.UIAutomation.RDP.DVC.Plugin,PAD\CONTROL`
68-
68+
6969
- `C:\Users\*\AppData\Local\Microsoft\Power Automate Desktop\RDP Automation Agents\*\PAD.RDP.AutomationAgent.exe,Microsoft.Flow.RPA.Desktop.UIAutomation.RDP.DVC.Plugin,PAD\UIA`
7070

7171
Ensure Citrix machines are restarted after applying the policy.
7272

73+
5. If the agent is running and no error is shown on the tray icon, then run the troubleshooter in UI Automation section while the RDP/Citrix window/app is running. Check for issues. If the troubleshooter is reporting error, check the details.
74+
75+
:::image type="content" source="media/rdp-no-highlight/rdp-access-denied.png" alt-text="Screenshot of the Power Automate troubleshooter with highlighted the RDP/Citrix issue details.":::
76+
7377
## More information
7478

7579
[Automate on virtual desktops](/power-automate/desktop-flows/virtual-desktops)

0 commit comments

Comments
 (0)