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:

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