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 Apps
Unanswered

photo error

(0) ShareShare
ReportReport
Posted on by 557

I'm getting below error message, and I can't find a way around this because it returns a blank value for the picture. 

Screenshot 2023-11-21 104346.png

Categories:
I have the same question (0)
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @joel914823 

     

    Try this

    Office365Users.UserPhotoV2(ThisItem.Mail.Email)

     

    Refer this link : azure active directory - Powerapps Office365Users.UserPhoto failed - Stack Overflow 

    Office365Users.UserPhotoV2 failed error Frequently - Power Platform Community (microsoft.com)
    Solved: Re: UserPhotoMetaData (When user leaves the compan... - Power Platform Community (microsoft.com)

    https://thepoweraddict.com/office365users-connector-get-rid-of-this-warning/

     

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @joel914823 

     

    If previous step does not work, try this.

     

    IfError(Office365Users.UserPhotoV2(ThisItem.Mail), SampleImage)

     

    Refer this link : Handling Missing User Profile Photos in Canvas Apps – AaronKGumbs 

     

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

  • Hassan_SZ_365 Profile Picture
    542 on at

    Hi @joel914823 ,

    To resolve this error follow few steps:

    1. The item you're trying to access (ThisItem) has a valid Mail property with a user's email address.
    2. The user whose email address you're passing has a photo uploaded in Office 365.
    3. The PowerApps has proper permissions to access Office 365 User Photos.

    If the email can sometimes be blank, you may want to add a condition to only call UserPhotoV2 when there's a valid email:

     

    If(IsBlank(ThisItem.Mail), DefaultImage, Office365Users.UserPhotoV2(ThisItem.Mail))

     

    Replace DefaultImage with the path or name of a default image you'd like to show when there's no email.

    Please ensure that the user's email address is present and correct in the data source for the gallery or form where ThisItem is being used.

    Best Regards,
    Hassan Raza

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard