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

AD Error Message

(0) ShareShare
ReportReport
Posted on by 70

I have a sharepoint list with many AD account entries. But I also have entries from people without an AD account. I have the AD photo displayed in a column. For people who do not have an AD account, an error message appears:
"Office365Users.UserPhotoV2 failed: The function 'UserPhotoV2' has an invalid value for parameter 'id' - a blank value was passed to it where not expected. Please make sure that a valid argument is passed to the function. "
I tried to avoid the error with the query:

If(IsBlank(Office365Users.UserPhotoV2(ThisItem.AD.Email)),DisplayMode.Disabled,Office365Users.UserPhotoV2(ThisItem.AD.Email))

Unfortunately the query doesn't work. Which query can I use to avoid this error?

Categories:

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard