Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

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 ?

 

 

  • nals Profile Picture
    Microsoft Employee on at
    Re: Gateway GetPassThroughNativeQueryMetadataAsync - this operation (Execute Native Sql) is currently not supported using an on-prem gateway connection

    Its a azure SQL and im still facing tihs issue

  • Verified answer
    PrasadAthalye Profile Picture
    on at
    Re: Gateway GetPassThroughNativeQueryMetadataAsync - this operation (Execute Native Sql) is currently not supported using an on-prem gateway connection

    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.

     

  • mthaker Profile Picture
    50 on at
    Re: Gateway GetPassThroughNativeQueryMetadataAsync - this operation (Execute Native Sql) is currently not supported using an on-prem gateway connection

    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
    Re: Gateway GetPassThroughNativeQueryMetadataAsync - this operation (Execute Native Sql) is currently not supported using an on-prem gateway connection

    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

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1