cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Boyan
Frequent Visitor

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

Hi everyone,

 

I totally get it - this is a premium feature but even then, not a usable one? The SQL connector states that one can not run queries via an existing database gateway in order to hit an on-pren SQL server, it seems the only way to pull data is via SP which has to be defied on the on-prem SQL server first and then the SQL connector can execute the SP and harvest the output. I get this error and screen short below: Gateway GetPassThroughNativeQueryMetadataAsync - this operation (Execute Native Sql) is currently not supported using an on-prem gateway connection

 

In contracts -- Power BI service runs any query against the same database gateway with no problems? One gets to literally write the SQL query as part of their PBI report and it just works - as expected.

 

Why is it that the SQL connector for Flows has this defect? Is there any way around it, other than writing on-prem SPs of course?

Thank you

B

 

Boyan_0-1603640133140.png

 

2 REPLIES 2
FCGALLEG
Community Support
Community Support

Hi Boyan, 

 

I would like to share with you this thread.

 

https://powerusers.microsoft.com/t5/Using-Flows/ExecutePassThroughNativeQueryAsync/td-p/69162

 

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 vote the idea in Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/Support-quot-Execute-a-SQL-query-quot-action-through-...

 

I hope it helps you.

 

JAvier

Boyan
Frequent Visitor

@FCGALLEG Thank you. I voted. Looks like no progress so far and the discussion you suggested has been open since 2017.

 

In the mean time, if I may ask: do you know whether Get Rows can do anything, I mean anything at all using on-prem gateway and no SPs?

 

Thank you

~B

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,308)