cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TiagoCosta1983
Advocate IV
Advocate IV

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
Advocate IV
Advocate IV

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
v-bacao-msft
Community Support
Community Support

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.

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
Advocate IV
Advocate IV

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,138)