cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jhutchings87
Level: Power Up

Show SP Error

I have a Flow setup to execute a stored procedure on a SQL box. I have a parrallel action to display the error from the SP should it return bad data or the user inputs something that isn't support by the SP example:

DECLARE @output VARCHAR(500) = 'HardarePattern cannot begin with wildcards (%, _, [])'
RAISERROR('%s',16,1,@output)
RETURN

 

When the flow executes the SP from the PowerApp, it returns the data to the data table without any issues, however, when the flow fails and goes to the failure action, it doesn't display the error from the SP, but instead just a generic "The data returned is invalid" in the red box in the PowerApp.  Is there a way to get the actual SP error to return rather than the canned "The data returned is invalid"? 

 

2 REPLIES 2
Super User
Super User

Re: Show SP Error

I have no direct answer, but perhaps taking a look at this article might be of assistance?

@Mr-Dang-MSFTwrote this one and has some great info in it.  Also some links in it to other possible help.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Community Support Team
Community Support Team

Re: Show SP Error

Hi @jhutchings87,

Could you please share a screenshot about your flow's configuration?

Do you configure a Parallel action to handle the "Execute stored procedure" action failure?

Do you want to return the actual "Execute stored procedure" action error message back to your app?

I agree with your thought almost. If you want to return the actual "Execute stored procedure" action error message back to your app, I afraid that there is no way to achieve your needs in Microsoft Flow currently.

Currently, within PowerApps, there is no action/solution supported to capture the error message of a action within a flow.

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 174 members 5,271 guests
Please welcome our newest community members: