|
| 1 | +--- |
| 2 | +title: The Remote Desktop Wasn't Found Error |
| 3 | +description: Solves an error that occurs when you use Remote Desktop Protocol (RDP) or Citrix automation in Microsoft Power Automate. |
| 4 | +ms.reviewer: amitrou |
| 5 | +ms.author: iopanag |
| 6 | +author: iopanag |
| 7 | +ms.custom: sap:Desktop flows\UI or browser automation |
| 8 | +ms.date: 04/29/2025 |
| 9 | +--- |
| 10 | +# A desktop flow fails with the "The remote desktop wasn't found" error |
| 11 | + |
| 12 | +This article helps you resolve an issue where a flow fails with the "The remote desktop wasn't found" error when using Microsoft Remote Desktop Protocol (RDP) or Citrix automation in Microsoft Power Automate. |
| 13 | + |
| 14 | +## Symptoms |
| 15 | + |
| 16 | +A flow using [Remote Desktop Protocol (RDP) or Citrix automation](/power-automate/desktop-flows/virtual-desktops) that previously ran successfully might start failing with the following error: |
| 17 | + |
| 18 | +> The remote desktop wasn't found. |
| 19 | +
|
| 20 | +This issue is more common in Citrix Virtual Apps. |
| 21 | + |
| 22 | +## Cause 1 |
| 23 | + |
| 24 | +The names of the RDP window, Citrix Desktop, or Citrix Virtual Apps might have changed since the original [UI elements](/power-automate/desktop-flows/virtual-desktops#distinguish-ui-elements-captured-on-virtual-desktops) were captured. Tracking these elements with the old name can fail. |
| 25 | + |
| 26 | +### Resolution |
| 27 | + |
| 28 | +To solve this issue: |
| 29 | + |
| 30 | +1. Ensure the affected RDP window, Citrix Desktop, or Citrix Virtual Apps is active. |
| 31 | +2. Locate the desktop element causing the issue in the [UI elements](/power-automate/desktop-flows/ui-elements#ui-elements) pane in the flow designer. Double-click it to open the selector editor. |
| 32 | + |
| 33 | + :::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."::: |
| 34 | + |
| 35 | +3. Select the **Repair** button and capture the new desktop or app. Review the suggested changes and accept them. For more information, see [Repair a selector](/power-automate/desktop-flows/repair-selector). |
| 36 | + |
| 37 | + :::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."::: |
| 38 | + |
| 39 | +4. After accepting the changes, select **Test** to verify the new selector. For more information, see [Test a selector](/power-automate/desktop-flows/test-selectors). |
| 40 | + |
| 41 | +5. (Optional) Use the **New** button to add more fallback selectors for the desktop. |
| 42 | + |
| 43 | +## Cause 2 |
| 44 | + |
| 45 | +When you use Citrix Virtual Apps with certain applications, especially when interacting with combo box lists, an incorrect target desktop selector might be created using an ordinal value (for example, **eq**) instead of a more robust selection method. |
| 46 | + |
| 47 | +### Resolution |
| 48 | + |
| 49 | +To solve this issue: |
| 50 | + |
| 51 | +1. Ensure the affected RDP window, Citrix Desktop, or Citrix Virtual Apps is active. |
| 52 | +2. Locate the desktop element causing the issue in the [UI elements](/power-automate/desktop-flows/ui-elements#ui-elements) pane in the flow designer. Double-click it to open the selector editor. |
| 53 | + |
| 54 | + :::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 app element highlighted."::: |
| 55 | + |
| 56 | +3. Check if the selector is using an ordinal value (the **eq** is selected.) If it is, clear the value and save the change. |
| 57 | + |
| 58 | + :::image type="content" source="media/error-remote-desktop-not-found/rdp-selector-builder-ordinal.png" alt-text="Screenshot of the Power Automate selector builder window with an ordinal attribute checkbox cleared."::: |
| 59 | + |
| 60 | +4. Select **Test** to verify the new selector. For more information, see [Test a selector](/power-automate/desktop-flows/test-selectors). |
| 61 | + |
| 62 | +[!INCLUDE [Third-party disclaimer](../../../../../includes/third-party-disclaimer.md)] |
0 commit comments