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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Need help with Power Automate Custom Connector & On-Premises API Integration

(5) ShareShare
ReportReport
Posted on by 44
I have an on-premises POST API hosted on an Azure VM. I'm trying to call this API from a Power Automate flow using a Custom Connector and On-Premises Data Gateway.
🔧 The API is accessible locally via localhost, and I've configured the connector accordingly with the gateway.
However, when I test the Custom Connector, I consistently receive the following error:
"Request failed. Please try again in a few minutes."
📌 Additional Notes:
The API works perfectly in Postman.
Service Tags have been assigned as per the region of Power Automate.
The gateway is online and appears under my environment.
Has anyone faced a similar issue or have insights on what might be missing?
Appreciate any guidance or suggestions 🙏

Please note: I am following the same step as defined in the blog
https://www.microsoft.com/en-us/power-platform/blog/power-automate/on-premise-apis/

I have the same question (0)
  • Suggested answer
    Holly Huffman Profile Picture
    6,522 Super User 2025 Season 2 on at
    Need help with Power Automate Custom Connector & On-Premises API Integration
    Good morning, afternoon, or evening depending on your location :)
    Hope you are well today!
     
    Thanks for sharing the screenshot—it confirms that you're encountering the "Request failed. Please try again in a few minutes." error on the Test tab of the Power Automate Custom Connector interface.
    Here’s what this tells us and how to proceed:

     What the Screenshot Confirms
    • You're testing the connector from the “Test” tab in the Power Automate UI.
    • The error is generic and doesn’t provide detailed diagnostics.
    • This is a known limitation: the Test tab often fails when using On-Premises Data Gateway or custom authentication, even if the connector works in a real flow.
     
    Recommended Next Steps
    1. Test the Connector in a Real Flow
    • Create a simple Power Automate flow that uses the custom connector.
    • Add a manual trigger and call the connector action.
    • Check the flow run history for detailed error messages.
    This often bypasses the limitations of the Test tab and gives better diagnostics.
     
    2. Check Gateway Logs
    • On the machine hosting the On-Premises Data Gateway, check logs at:
      C:\Program Files\On-premises data gateway\GatewayLogs
    • Look for entries around the time of your test to identify connection or authentication issues.
     
    3. Update the Base URL  
    4. Check Authentication Settings
    • If your API requires authentication (e.g., API key, Basic Auth), ensure:
      • The security tab in the connector is configured correctly.
      • The test call includes the required headers or tokens.
     
    Note: I collaborated with Copilot to help craft this response for clarity and completeness.
    Hope this helps some!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 394

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 123

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 102 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans