I am using below code in "Image" of Gallery items to display office 365 users profile pictures. _RequesterEmail is user email save as text in SharePoint point column. Error is in Attached file. Though, i can see profile pictures but the warning in very annoying as it shows to user every time they access the Power ApP page.
If(
Office365Users.UserPhotoMetadata(ThisItem._RequestorEmail).HasPhoto = true,
Office365Users.UserPhotoV2(ThisItem._RequestorEmail),
SAmpleperson
)
Error Message : attached file.