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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Capture further error ...
Power Apps
Unanswered

Capture further error details

(2) ShareShare
ReportReport
Posted on by 10

There are many articles on how to capture a submission failure which can be used to display to users.
This is done by reading Errors(TableName) and returns something like attached Image1;

MRTG_0-1635326913368.png

 

When viewing in 'Edit Mode' of PowerApps, I am able to get more detail which is important to this scenario. See Image2, error for same image above

MRTG_0-1635327022256.png

 

 

How can I capture the 'Server Response' as per the last image?

 

Categories:
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @MRTG You can turn on the experimental feature 

    " Formula-level error management "

     

    Then use the IfError, IsError, IsBlankOrError functions from PowerApps to check if an Error has happened, and handle the error such as to display it. More details here: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-iferror

     

    For the actual message, access the FirstError.Message property to know what the error message was.
    Example: 

     

    IfError( SomeErrorGeneratingFormula, Notify( FirstError.Message ) ) 

     


    You may also be interested in the FirstError.Kind, Source, Observed - and for multiple errors that occur you may be interested in accessing the AllErrors Table. 
    More info on this: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-iferror#firsterror--allerrors 

     

     

    Check if above helps @MRTG 

  • MRTG Profile Picture
    10 on at

    Hi,

     

    Thanks for that. The problem I have raised is that the formula you quote does not return the full server response. Your formula just returns what you see in the first image, I want to retreive the full reposnse.

  • GraysonBishop2 Profile Picture
    28 on at

    @MRTG, I'm running into this exact same issue (for me it is when I'm using Patch with SharePoint). All I can pull from the Error table is "The requested operation is invalid" or, if I have Formula-level error management enabled, I get "Network error when using patch function: The requested operation is invalid". But neither of these responses include the full server response I can see in the Power Apps Studio.

     

    I've noticed that in some apps, when Forumla-level error management is disabled, the full error message with the server response is displayed to the user. But I can't figure out when that shows vs when it doesn't so I can't even bank on that.

     

    I would love to hear any ideas on how to capture/control this server response part of the error.

     

    I made a related post in the Error Handling thread in case there was better engagement there - https://powerusers.microsoft.com/t5/Error-Handling/Capture-Server-Response-Part-of-Error/m-p/1482156.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard