Announcements
I'm getting below error message, and I can't find a way around this because it returns a blank value for the picture.
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.
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
Hi @joel914823 ,
To resolve this error follow few steps:
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 534
WarrenBelz 416 Most Valuable Professional
Valantis 306