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 / error in userphotometa...
Power Apps
Answered

error in userphotometadata

(0) ShareShare
ReportReport
Posted on by 308

Hi

I'm using the above formula to show photo from users. But when user leave my company , the apps shows error. Is that possible to workaround this error?

Thank you

 

If Not(IsBlank(ThisItem.Pessoa1));
If(
UsuáriosdoOffice365.UserPhotoMetadata(ThisItem.Pessoa1).HasPhoto = false;
'default-profile';
UsuáriosdoOffice365.UserPhoto(ThisItem.Pessoa1)
)
)

Categories:
  • Verified answer
    GarethPrisk Profile Picture
    2,828 on at

    What is the error?

    You can wrap it with an IfError or IsError function, to better handle the error.

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-iferror

    If it's a case of an image, you can also layer the default image behind the image for the user. This way, it also shows a default image until the user's image has been retrieved.

     

  • alessandramaced Profile Picture
    308 on at

    Tank you, doing these way!!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard