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 / User Profile Picture E...
Power Apps
Answered

User Profile Picture Error

(0) ShareShare
ReportReport
Posted on by 53

I'm getting a user profile picture error in my app. I've tried several of the forum's answers but still getting the error. I have two differernt places in my app that i use this feature to display the users profile picture in galleries. 

 

I use the If formula with an IsBlank to display the profile, else a picture called building that has been uploaded into the app and used elsewhere. 

 

If(IsBlank(Office365Users.UserPhotoV2(ThisItem.email)),building,Office365Users.UserPhotoV2(ThisItem.email))

 

 

 

I'm getting this error see attached. 

 

This happens when the app starts:

 

LoadUpAndRide_1-1686577635642.png

 

This happens when I access the gallery and scroll to an employee without a profile pic:

 

LoadUpAndRide_0-1686577590714.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @LoadUpAndRide,

     

    Common issues with looking up photo's could be (1) the email is faulty (inactive employee, email was wrongly written...) and (2) the user has no actual photo.

     

    After some short testing, what you could give a try is using IfError to surpress the possible errors that you might receive:

    If(
     //Check whether the user has a picture, default to false if an error occurs
     IfError(
     Office365Users.UserPhotoMetadata(ThisItem.email).HasPhoto,
     false
     ),
     Office365Users.UserPhotoV2(ThisItem.email), //Picture & no errors
     building //No picture or an error
    )

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • LoadUpAndRide Profile Picture
    53 on at

    SPOT ON!!! Thanks. 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard