Notifications
Announcements
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 ?
@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.
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.
I need to capture this error in collection or show to users . It's not working. Any Idea ?
@gokulnath you should not show this error to an user but you should ensure that this issue will not happen.
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.
Any suggestion on this. Thank-you.
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, StalinBlog - Learn To Illuminate BlogYouTube - Learn To Illuminate Videos
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 739 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 268