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 / Handle error Not Found...
Power Apps
Answered

Handle error Not Found - 404

(0) ShareShare
ReportReport
Posted on by 11
Hello,
 
Is there any possibility to suppress the displays of errors in Power Apps and to get a more user friendly message?
My scenario:
A have a button with "OnSelect":
https://graph.microsoft.com/v1.0/users/{UserID}/memberOf?$filter=id eq '{GroupID}'
I just want to check if a {UserID} is member of a that {GroupID}'. If the user is not member, of course, we get error "Not Found - 404"
"error": {
"code": "Request_ResourceNotFound",
I don't want to query first Office365Groups to obtain the groups where {UserID} belongs to (and through which we can get a collection (ClearCollect(...):
where you can search if the user belongs to that group...
Just simple, to suppress the display of errors in Power Apps (if it is possible) and to "convert" some how this error in a message or in a changes of a value of a variable, like to display in a "Text label":
"The user is not belong to this group".
 
Thank you !
Categories:
  • timl Profile Picture
    37,409 Super User 2026 Season 2 on at

    Hi @virgiliua 

    I'm not sure what you mean when you say you have a button with OnSelect set to the URL. Are you launching this URL with the Launch function?

     

    Ultimately, Powerapps cannot differentiate between a valid response or a 404.

    What you could do is to create a Power Automate flow that calls the graph API with a HTTP request action.

    You can then inspect the response from Power Automate and return a friendly message in the event of a 404.

  • Verified answer
    virgiliua Profile Picture
    11 on at

    Hello @timl ,

     

    I have already solve it by reading the article:

    How to capturing a 404 Error

     

    Thank you !!

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 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard