web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / 502 'BadGateway' when ...
Power Automate
Unanswered

502 'BadGateway' when running UI flow for web from flow

(4) ShareShare
ReportReport
Posted on by

I am trying to run a simple UI flow by using 'Run a UI flow for web' connector in flow. I have the On-premise gateway, have the connection with it, can see it under Data -> Gateways and the connection under Data -> Connections is also there and connected.

When running the flow it takes about 2 minutes until it fails with 502 'BadGateway' error.

In On-premises data gateway App status is 'Online and ready to be used', under Diagnostics tab i run Network ports test and it shows 'Completed (Successful)'

I must say that I am doing it from freshly made Environment(Trial) since i wasn't able to get the Gateway connection on my Default environment (wasn't showing any gateways in dropdown).

Any advice?
Thanks!

Categories:
I have the same question (0)
  • RyanBrubaker124 Profile Picture
    3 on at

    We had the same issue today…

     

    Fix

    Make sure your Data Gateway is not in a cluster - clusters are not supported by UI Flows

    Make sure Chrome is installed on the Data Gateway

    Download and install the UI Flows Installer (Google it) on the Data Gateway and make sure it is running (you'll see a little blue UI Flows icon in the system tray)

    You must leave the Data Gateway server logged in  (disconnected) as the user credentials running the UI Flow

     

     

    That's what fixed it for us.  Not ideal, but it worked.  I hope this helps.

  • Community Power Platform Member Profile Picture
    on at

    Hi @RyanBrubaker124 , thanks for replying!

     

    I don't remember making any clusters for my Data Gateway.

     

    What do you mean by making sure Chrome is installed on the Data gateway? Also, what do you mean by installing UI Flows Installer on the Data Gateway?

    I don't remember installing anything ON anything specific. I have Data Gateway installed by just doing everything default. Same with UI Flows installer. It also prompted to get PowerAutomate chrome extension and i got also selenium extension.

     

    Also - "You must leave the Data Gateway server logged in  (disconnected) as the user credentials running the UI Flow".
    How can i do that? When i run my flow that's failing i have my gateway open and logged in, UI Flows icon is there in the system tray, PowerAutomate chrome extension is enabled.

    Thanks in advance.

  • tony_hernandez Profile Picture
    14 on at

    Following this, I have the same issue.

  • Community Power Platform Member Profile Picture
    on at

    Same issues here.

  • DerekHurley Profile Picture
    56 on at

    Also same issue here, any update on how to fix?

  • dshamsi1 Profile Picture
    14 on at

    Same issue

  • Community Power Platform Member Profile Picture
    on at

    Facing same issue 😟

  • Jaison Profile Picture
    2 on at

    Same issue.  I'm guessing since this is in preview we wont get a response?

  • Verified answer
    DerekHurley Profile Picture
    56 on at

    Hi @Anonymous ,

     

    I spoke with Microsoft about this issue, they are aware of it and gave this fix:

     

    "Product team mentioned that , unfortunately It is a known issue of UI Flow agent when user use AzureAD domain as their on premise machine windows auth.

    And they provided below work around to fix this issue.

     

    1. please use other school or work account domain if they has.

    Or

    1. please go to C:\Program Files (x86)\Microsoft UI flows\edit the file Microsoft.Flow.RPA.Agent.exe.config

    With below entries:

        <add key="Microsoft.Flow.RPA.Agent.EnforceWindowsAuth" value="false" />

    Only administrator can modify the files in that folder, so you need to run your text editor in Admin Mode to be able to edit them."

  • Community Power Platform Member Profile Picture
    on at

    Hi @DerekHurley ,

     

    I do not have access to any other account and changing the Microsoft.Flow.RPA.Agent.exe.config file did not solve the problem for me. 😞

    Did changing the line in config file to false alone solve the issue for you?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard