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 / SQL Server On-Prem Gat...
Power Automate
Unanswered

SQL Server On-Prem Gateway Error: GetPassThroughNativeQueryMetadataAsync

(5) ShareShare
ReportReport
Posted on by

Hello!

I'm having trouble running a SQL Server query through my on-premises data gateway.

 

I can use the built-in "Get Rows" function to successfully return a set of rows, but I need to run a complex query that joins across several tables. When I try "Execute a SQL Query", it falls over with the following error:

 

{
  "status"400,
  "message""Gateway ExecutePassThroughNativeQueryAsync\r\nclientRequestId: 0a3e8a93-45a6-4f29-ad28-d4375b6963a7",
  "source""sqlconnectionprovider-westus.tip0-westus.p.azurewebsites.net"
}

 

Has anybody seen this before? Any recommendations on how to solve this?

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    on at

    Hi @americanmussel,

     

    Could you please share a screenshot of your flow’s configuration?

    The “Execute a SQL query” action is not supported in Microsoft Flow using an on-premises gateway connection currently.

    If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    Best regards,

    Kris

  • Community Power Platform Member Profile Picture
    on at

    Hey v-xida-msft!

    Thanks for the quick reply.

    I've attached a screenshot to my Ideas post here:
    https://powerusers.microsoft.com/t5/Flow-Ideas/Support-quot-Execute-a-SQL-query-quot-action-through-an-on/idi-p/69514#M4819

     

    Let me know what other details I should provide! Hope we can get the support 🙂

    Thanks,
    americanmussel

  • yhlow72 Profile Picture
    20 on at
    still no update up to now?
  • DSantos Profile Picture
    7 on at

    Tried querying a table from a database on my local machine using PA and got the following notification message:

     

    Gateway GetPassThroughNativeQueryMetadataAsync - this operation (Get Native Sql Metadata) is currently not supported using an on-prem gateway connection.

     

    Hence, querying a table that relies on on-prem gateway doesn't seem to be a priority item.

  • WPD_Rusty Profile Picture
    3 on at

    Still nothing eh?

  • JLo Profile Picture
    30 on at

    I have the same issue. The workaround I use is too create a view on the database. You can use the Get rows pointing to the view.

    The only problem (for me) is that every time I need a new view or update one, I need to involve IT as I cannot do it myself.

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard