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

Unable to execute "Execute SQL Query (V2)" action in Power Automate

Hi,

 

I am able to connect to my SQL Server using On Premise gateway connector in Power Automate(MS Flow).#sqlserver #MSFlow

But when I try to execute action "Execute SQL Query (V2)" from SQL server connector to run simple query "EXEC * from TableName" shows error "Gateway GetPassThroughNativeQueryMetadataAsync - this operation (Get Native Sql Metadata) is currently not supported using an on-prem gateway connection".

 

Please see the below screenshot:

 

Issue.png

4 REPLIES 4
abm
Super User
Super User

Hi @Ankita2020 

 

Yes that's correct. Unfortunately Execute a SQL query not supported an on-prem gateway connection.

 

You can post this as an idea for future release.

 

https://powerusers.microsoft.com/t5/Power-Automate-Ideas/idb-p/MPAIdeas

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

I just started using Flow and ran into this issue. Is there a work around? 

Flow lets me click ellipse and add data gateway and error goes away...but then I get error when I run it.

MiningRobot
New Member

Yes, facing same issue. It's frustrating that there is no guideline on how to make it work.

mevargasc
New Member

If somebody is looking for this , I resolved with the "transform data query editor" action . In my case I needed a parameter , if you need create any and get from the previous action .

 

mevargasc_0-1629921503244.png

 

mevargasc_1-1629921698004.png

 

 

 

 

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,532)