Hello good day,
We need to capture the runtime error in Power Apps. We are using button to trigger a flow. We need to find out any Run Time error and show to users . Any idea on this ?
Hi @gokulnath
Please enable the Formula level error handling to display the error in the upcoming future.
Capture Error
IfError( 'PowerAutomateName'.Run( JSON( colFiles, JSONFormat. IndentFour ),
Switch( ComboBox1.Selected.Value, "user1", "user1" ) ),
Set(VarErrorInfo, FirstError.Message);
);
Display Error
Note: Formula error handling is still upcoming future. Aware of to use it in Production.
Thanks, Stalin
Blog - Learn To Illuminate Blog
YouTube - Learn To Illuminate Videos
Hi @PowerRanger ,
Yes . You are correct, but it's requirement users were asking , we are not allowed to change that. All they need is error log. Users are planning to build a new app after collecting all error logs. So Please suggest me to collect those error in collection then , I will use Patch methods to save those error detail to SPO list.
@gokulnath you should not show this error to an user but you should ensure that this issue will not happen.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @PowerRanger ,
I need to capture this error in collection or show to users . It's not working. Any Idea ?
Hi @PowerRanger ,
Thanks for your response. I am checking the Errors() function as you suggested. We are passing 30+ parameters from Power Apps to Power Automate to save the record. here we are getting some run time errors which stops the flow from trigger. There I couldn't see any ErrorKind type with Runtime error. Please share if you have some screenshots.
@gokulnath have a look at the Errors() function.
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-errors
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
WarrenBelz
110
Most Valuable Professional
MS.Ragavendar
75
Michael E. Gernaey
52
Super User 2025 Season 1