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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / UI flow Gateway Connec...
Power Automate
Unanswered

UI flow Gateway Connection "Test connection failed"

(0) ShareShare
ReportReport
Posted on by 10

Hello everyone,

 

I ran into an error while setting up an on-prem Gateway to trigger my UI Flows.

 

When I try to setup a connection in the web portal I get the error message:
"Test connection failed. Details: There is a problem with your credentials. Verify your credentials or use other credentials to connect to the gateway."

Unbenannt.png

 

 

 

 

 

 

 

 

 








The local installation and configuration ran succesfully. I changed the service account to the domain user, which is logged in on the machine. The Gateway says it is "online and ready to be used". The network and port test also suceeds.

In the webportal I also see the status of the Gateway as online.

 

The I service user is the same as the one that I put in when setting up the connection. It´s a domain user but not AAD. The device is joined to a local domain, not azure joined. I tried every variation of username that I could think of, domain\username, username@domain.com, mail, ...

 

The connection needs to use a proxy, but I did followed this guide: Configure proxy settings for the on-premises data gateway | Microsoft Docs

 

Anything else I can try?

Thanks and Regards

Janis

 

 

I have the same question (0)
  • matow_MSFT Profile Picture
    Microsoft Employee on at

    @Janis_ It looks like you followed the right steps - typically the network connection test from the Gateway will show if something is blocked, and DOMAIN\username is the right format for the login. A few questions to help troubleshoot:

     

    1. Do you see the same error message if you try to create the connection from within the UI flows connector in an instant flow?
    2. Does creating the connection work with the format ~\Username rather than DOMAIN\Username?
  • Janis_ Profile Picture
    10 on at

    Hi @matow ,

    Thanks for the answer.

     

    yes, its independend from the point where I try to set up the connection. It´s the same error inside a flow and under data -> connections.

     

    Unfortunately ~\Username also doesn´t work.

     

    Regards

    Janis

  • antouly Profile Picture
    Microsoft Employee on at

    Hi @Janis_,

     

    In order to investigate what is happening here, we need some additional information.

     

    To get this information, please follow these steps:

          1. Go back to the web portal where you tried to create your connection in the UI Flows connector and enter your credentials as you did before but without clicking on "Create" for now.

    1st.png

     

           2. Press F12 (being on the connection creation page) to open the DevTools and go to the Network tab.

    Screenshot 2020-11-02 145052.png

     

          3. In the Filter box, type "testconnection".

    filter.png

     

          4. Keeping the DevTools opened, click on the Create button on the web portal.

    1st - Copy.png

     

          5. Click on each "testconnection" entry on the DevTools and copy the value of the "x-ms-correlation-request-id" header if there is one.
    correlationId.png

     

          6. Finally, provide us in a response to this thread, the value you copied.

     

    Best Regards,

    Andreas

  • Janis_ Profile Picture
    10 on at

    Hi @antouly ,

     

    I get the status code 401. The Request ID is fbd4237a-f7b4-4359-a372-ec6def3405b7.

    In contrast to your screenshot, my referrer Policy is "origin".

     

    Thanks

    Janis

  • antouly Profile Picture
    Microsoft Employee on at

    Hi @Janis_,

     

    After investigating your problem, it appears that there is a problem with UI Flow Service (from the local installation) that cannot reach some required URLs: https://docs.microsoft.com/en-us/power-automate/limits-and-config#ui-flows-required-services

     

    Can you check that your local user and the service account "NT Service\UIFlowService" (installed by the local installation on your machine) are allowed to reach these URLs?

     

    Thanks,

    Andreas

  • Janis_ Profile Picture
    10 on at

    Hi Andreas,

     

    Thanks, I will check with the network team and get back to you.

     

    Regards

    Janis

  • Dimeji Profile Picture
    9 on at

     @antouly I am experience the same issue. Can you help me interpret this Request ID: cd11adfc-db4a-49f3-9459-94b07f5ec7f5 . My on premis gateway is on a VM and I use my Azure AD credentials which is enabled to log in. Furthermore I use a fingerprint/pin to log in to VM instead of a password

  • suryapunjsharma Profile Picture
    2 on at

    Test connection failed. Details: There’s an issue with your credentials. Check your credentials or use different credentials to connect to the gateway. Correlation id: 57e4ec81-ccd6-40f2-b4f7-cc15bb9b03ed

     

    Can someone help regarding this error?

  • antouly Profile Picture
    Microsoft Employee on at

    @Dimeji, sorry for the late reply. Are you still experiencing the same issue? If so, can you please send me the last error message you got with the request/correlation id?

     

    @suryapunjsharma the error message says that you are not using the right credentials to connect to your machine.

    If you are using local account's credentials, can you double-check that the username is the correct one? To do so, you can go to C:/Users/[YourUsername]. Sometimes, the actual username can be a little bit different from the one you see in other Windows settings. Finally, if you have an Active Directory account, don't forget to add the domain before your username: DOMAIN\YourUsername

     

    Thanks,

    Andreas

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard