Skip to main content

Notifications

Community site session details
Power Apps - Building Power Apps
Answered

Runtime error

Like (0) ShareShare
ReportReport
Posted on 22 Feb 2022 06:53:16 by 208

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:
  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on 28 Feb 2022 at 16:20:52
    Re: Runtime error

    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

  • Gokulnath_March Profile Picture
    208 on 23 Feb 2022 at 19:45:22
    Re: Runtime error

    Hi @PowerRanger ,

     

    Any suggestion on this. Thank-you.

  • Gokulnath_March Profile Picture
    208 on 22 Feb 2022 at 10:04:53
    Re: Runtime error

    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.

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on 22 Feb 2022 at 09:41:01
    Re: Runtime error

    @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
    208 on 22 Feb 2022 at 09:19:01
    Re: Runtime error

    Hi @PowerRanger ,

     

    gokulnath_1-1645521463426.png

     

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

  • Gokulnath_March Profile Picture
    208 on 22 Feb 2022 at 07:37:41
    Re: Runtime error

    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.

     

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on 22 Feb 2022 at 07:19:44
    Re: Runtime error

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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 106 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 75

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 52 Super User 2025 Season 1

Overall leaderboard