Hi
I want to display the current logged in users profile image and i want it to work on mobile devices to.
Now if i use the following lines it works but multiple times i can see an error showing, the image is still displayed correctly, sometimes the error message is now showed at all and i don't know why i receive the error at all.
If(Microsoft365Users.UserPhotoMetadata(Microsoft365Users.MyProfileV2().mail).HasPhoto=false,SampleImage,Microsoft365Users.UserPhotoV2(Microsoft365Users.MyProfileV2().mail))
Error Message displayed at random (Image is always showed correctly even if the error message is displayed)

If i use User().Image it works on some devices but not all and not for all users.
Any suggestion how i can work around this? Or let me know whats wrong with my lines.