cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
frmelo21
Level: Powered On

ShoutOut Powerapp issue with Profile PIctures

Hi everyone, my first post!

Regarding the shoutout powerapp, which is great by the way, i am getting the following error opening the app

 

Office365Users.UserPhotoMetadata failed: { "error": { "code": "ErrorItemNotFound", "message": "The photo wasn't found.", "innerError": { "request-id": "89cdda18-d053-4d78-853a-2495f7206b4e", "date": "2018-11-07T20:31:50" } } }

 

Based on my research it is recommended to use the UserprofileV2 command, which i did, but i am still gettin the errorl. I am aware that there are many users that prefer not to have a profile picture, so ignoring the error is not really what i want them to do.

 

Does anyone have a way to just suppress the error message? or how to fix it?

6 REPLIES 6
Highlighted
Community Support Team
Community Support Team

Re: ShoutOut Powerapp issue with Profile PIctures

Hi @frmelo21,

 

To display Office 365 profile pictures without throwing errors,  you need to do several checks ahead of time.

 

  1. Check to see if the user has an Id
  2. Check to see if the user is an external user by inspecting the domain for their email account
  3. Check to see if the user has a profile picture
  4. If any of the checks fail, display a placeholder image
  5. If all of the checks pass, call Office365Users.UserPhoto to return the photo and display it

Please use below formula instead:

If(
    IsBlank(ThisItem.Id),
    'profilepic-generic-user',
    If(
       Not(UserDomain.Text = MyDomain),
       'profilepic-generic-user',
       (
        If(
            Office365Users.UserPhotoMetadata(ThisItem.Id).HasPhoto = true,
            Office365Users.UserPhoto(ThisItem.Id),
            'profilepic-generic-user')
           )
       )
   )

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
frmelo21
Level: Powered On

Re: ShoutOut Powerapp issue with Profile PIctures

Hi Mona

Thank you for your help but where would i add that code?

on start?

i am having a hard time inserting code. Maybe that's a different problem, but i can't see to be able to have the ability to insert code or even do returns. 

frmelo21
Level: Powered On

Re: ShoutOut Powerapp issue with Profile PIctures

from further research it looks like this is something that microsoft has to fix. 

I was told that they have deployed a fix to US tenants, but i am unsure if it has hit my tenant yet.

has anyone gotten this to work?

mbutterz
Level: Powered On

Re: ShoutOut Powerapp issue with Profile PIctures

I've been trying to get this issues sorted for weeks. Eventually a MS engineer said it was a bug on their end, but i've not heard anything back since.

 

It's very frustrating, not impressed with MS at all. Get it sorted!!

mr-dang
Level 10

Re: ShoutOut Powerapp issue with Profile PIctures

@mbutterz @frmelo21

We are working to resolve issues with Office365Users.UserPhotoMetadata connector.

At this time, please use the UserPhotoV2 endpoint and comment out the use of UserPhotoMetadata. 

 

https://powerapps.microsoft.com/en-us/support/

Microsoft Employee
@8bitclassroom
mbutterz
Level: Powered On

Re: ShoutOut Powerapp issue with Profile PIctures

After numerous help desk calls to microsoft, they've finally fixed this bug.

 

Hurray!

 

Smiley Very Happy

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 262 members 4,485 guests
Recent signins:
Please welcome our newest community members: