|
| 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. |
0 commit comments