cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sujan
Microsoft
Microsoft

Error saving flow with "Execute a SQL Query" action

Hi,

 

In my flow I am connecting to onpremise database, "Get rows" action is executing successfully but when I add "Execute SQL query" action flow is not saving. Below error is popedup while trying to save flow, not sure what is going wrong. Please guide.

 

Error while saving: Flow save failed with code 'MultipleErrorsOccurred' and message 'Multiple errors occurred: 'BadRequest,BadRequest'.'.

 

Flow screenshot

FlowError.JPG

 

Thanks,

Sujanakar Reddy

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @sujan 

 

Did you resolved the issue? Also remember Execute a SQL Query Power Action step will NOT work for on-premise SQL instances.

 

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 blog
Power Automate Video Tutorials

View solution in original post

4 REPLIES 4
abm
Super User
Super User

Hi @sujan 

 

Try the following:

 

Click on the three dots of the Execute a SQL Query step. Add a new connection.

 

Save the flow.

 

 

If you getting the same error then remove the * (start) from the select statement and mention the column names.

 

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 blog
Power Automate Video Tutorials
abm
Super User
Super User

Hi @sujan 

 

Did you resolved the issue? Also remember Execute a SQL Query Power Action step will NOT work for on-premise SQL instances.

 

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 blog
Power Automate Video Tutorials

Hi All,

 

I applied filter on Get Rows action, it solved my problem.

 

Thanks,

Sujanakar Reddy

Hi @sujan ,

 

Is there any roadmap for Execute SQL query connector to work for On-prem sqls server.?

 

Also, if I want to filter some rows in Get rows action, how it can be fulfilled.?

For instance, I want to filter like all rows after '20201-01-24T11:34:35Z' datetime in SQL datetime field.?

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,815)