Hello,
i'm fighting with a problem, whats well known but nobody really solve it for now/or maybe just for me.
I have the following code in a templateGalleryList Image inside the image property field:
In the GalleryList are a few "user" objects from a SharePoint list with fields like Email, whats the UserPrincipalName from our ActiveDirectory.

The Code is in german, so the syntax is a little different to english but as you can see there is no error in the formula and its working fine except the Error Message as shown below.
When i play the App in the Editor, there is no error.
When i start the app from Teams or in Web from a link, i get on app start this error:

In english, this means:
Error: the method 'userphoto' has an invalid value for parameter 'userid'
As you can see in the code above, i was trying to implement error handling with: IsError() but this does not hide the error for the users...
I have the IsBlank Method for the mail, if its empty. I have the SearchUser Method inside an IsEmpty method for checking the user in O365 exists before asking for the picture...
All photos are displayed and the error is not having any affect but we want to hide the error message for the users (we have over 1.000 Users).
I would really appreciate your help in this case! Im done^^
Best regards,
David