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
Highlighted
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.

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.
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

 

 

 

Highlighted
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.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 227 members 4,632 guests
Please welcome our newest community members: