cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TiagoCosta1983
Level: Powered On

Bad request on SQL Stored procedure on premise

Hey Guys,

 

I've built a stored procedure to log some data into a on premise SQL database, nothing special.

I run it in some flows and it goes ok, but on others it keeps on giving me the most strange error.

I have no key checking, just inserting lines....

 

I also have to say that this step on this flow is inside an "Apply to each" condition, don't know if this is what's making it not workable. 

 

The data passed by is the same on all so I'm clueless on this one.

 

Can you guys help me ?

 

Thanks in advance.

 

Capture.PNG

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
TiagoCosta1983
Level: Powered On

Re: Bad request on SQL Stored procedure on premise

I think I figure it out!

 

I needed to explicitly on the flow say witch connection to use in the menu "Manage Run-Ony Users".

Once I did it it worked and no error.

 

Thanks for helping out.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Bad request on SQL Stored procedure on premise

Hi @TiagoCosta1983,

 

Could you please share a full screenshot of the configuration of your flow, especially the configuration of the Executed stored procedure action?

I noticed that Status code-400 appeared in the error message, it seems that a setting in the action doesn't function as expected.

Please provide more details and we would provide proper workaround for you.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
TiagoCosta1983
Level: Powered On

Re: Bad request on SQL Stored procedure on premise

Hello Barry,

 

Here are some more Screenshots:

 

Flow:

1.PNG

 

2.PNG

 

Stored procedure in detail: (connects using a On-Prem gateway, connection is fine and other flows work perfectly, only this gives that error message)

3.PNG

 

4.PNG

 

 

 

TiagoCosta1983
Level: Powered On

Re: Bad request on SQL Stored procedure on premise

I think I figure it out!

 

I needed to explicitly on the flow say witch connection to use in the menu "Manage Run-Ony Users".

Once I did it it worked and no error.

 

Thanks for helping out.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,575)