Gateway or machine should be online when desktop flows fail with a gateway error
This article covers topics related to legacy systems. Migrate your flows created with these solutions to Power Automate for desktop or delete them.
- Selenium IDE is deprecated and will no longer work after February 28th, 2023.
- Windows recorder (V1) is deprecated and no longer works.
This article provides steps to solve an unavailable gateway or machine issue.
Applies to: Power Automate
Original KB number: 4555596
You are able to test your desktop flows locally, but they fail with a gateway error when trying to run it as part of a Flow.
Go to the run summary page of the flow, and look at the error for the desktop flows step.
Unreachable gateway, The target gateway is not available, and Could not connect to UI flows running on your machine are good candidates for this problem.
The next step is to determine which of the machine, the gateway, or the UI flow service is offline.
Head over to https://flow.microsoft.com.
Select the target environment.
Go to data/Connections in the left menu. If you already know which gateway is failing, go to data/Gateways and select the target gateway. Go directly to step 6.
Filter for UI flows to find UI flows connections, and select the connections used in the failing flows.
Select the gateway name on the details page:
You can check the status of the gateway here:
If the gateway appears offline, make sure that the host machine is turned on and that the On-Premises Data Gateway app is running.
If the gateway appears online or if the above steps fail to solve the issue, make sure that the UI Flow service is started on the machine.