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 / Gateway GetPassThrough...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 50

I am trying to connect to execute SQL (custom query), through FLOW. But after providing of 'Server' and 'Database' name it's throwing following error.

 

The dynamic operation request to API 'sql' operation 'GetPassThroughNativeQueryMetadata_V2' failed with status code 'BadRequest'. This may indicate invalid input parameters. Error response: { "status": 400, "message": "Gateway GetPassThroughNativeQueryMetadataAsync - this operation (Execute Native Sql) is currently not supported using an on-prem gateway connection.

 

Screenshot :

mthaker_2-1631110037118.png

 

Can anyone help on this ?

 

 

Categories:
I have the same question (0)
  • Verified answer
    PrasadAthalye Profile Picture
    on at

    Execute Native SQL using On Premise Gateway is not supported at the moment.. 

     

    https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Support-quot-Execute-a-SQL-query-quot-action-through-an-on/idi-p/69514

     

     

  • mthaker Profile Picture
    50 on at

    Thanks Prasad!

    I could able to execute StoredProc through 'Execute Stored Procedure (V2)'. I can query single table through 'Get row (V2)' and do various 'server actions' provided under 'SQL server' connection. 

     

    My query (now) is,

    What is the purpose of providing an option 'Execute a SQL Query (V2)' in the cloud when it's not working ? 

     

    And if it's working then wanted to know that alternative, to get data with it.

     

  • Verified answer
    PrasadAthalye Profile Picture
    on at

    Please refer following link. Under Known Limitations, Point 9 says that Execute SQL Query V2 is not supported for On Premise.

    https://docs.microsoft.com/en-us/connectors/sql/

     

    You can always connect to Azure SQL to query data.

     

  • nals Profile Picture
    Microsoft Employee on at

    Its a azure SQL and im still facing tihs issue

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