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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (2,647)