web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Answered

Runtime error

(0) ShareShare
ReportReport
Posted on by 218

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_0-1645512524620.png

 

 

Categories:
I have the same question (0)
  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

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

  • Gokulnath_March Profile Picture
    218 on at

    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_March Profile Picture
    218 on at

    Hi @PowerRanger ,

     

    gokulnath_1-1645521463426.png

     

    I need to capture this error in collection or show to users . It's not working. Any Idea ?

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

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

  • Gokulnath_March Profile Picture
    218 on at

    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_March Profile Picture
    218 on at

    Hi @PowerRanger ,

     

    Any suggestion on this. Thank-you.

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @gokulnath 

     

    Please enable the Formula level error handling to display the error in the upcoming future.

    StalinPonnusamy_4-1646065185574.png

     

    Capture Error

    IfError( 'PowerAutomateName'.Run( JSON( colFiles, JSONFormat. IndentFour ), 
    Switch( ComboBox1.Selected.Value, "user1", "user1" ) ), 
    Set(VarErrorInfo, FirstError.Message); 
    ); 

     

    Display Error

    StalinPonnusamy_3-1646065159142.png

     

    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

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard