cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mengting
Advocate II
Advocate II

Error: Office365Users.UserPhoto V1 and V2 show error message

Hi,

I am using Office365Users.UserPhoto() to retrive image of the employee. I tried all the possibilities below:

  1. Re-add the Office 365 User Data source
  2. I tried Office365Users.UserPhotoV2
  3. I tried different functions below:

 

If(!IsBlank(ThisItem.Id),If(Office365Users.UserPhotoMetadata(ThisItem.Id).HasPhoto=false,SampleImage,Office365Users.UserPhoto(ThisItem.Id)))

If(Office365Users.UserPhotoMetadata(ThisItem.Id).HasPhoto=false,SampleImage,Office365Users.UserPhoto(ThisItem.Id))

If(!IsBlank(Id),If(Office365Users.UserPhotoMetadata(Id).HasPhoto=false,SampleImage,Office365Users.UserPhoto(Id)))

Office365Users.UserPhoto(ThisItem.Id)
If(!IsBlank(ThisItem.Id),If(Office365Users.UserPhotoMetadata(ThisItem.Id).HasPhoto=false,SampleImage,Office365Users.UserPhotoV2(ThisItem.Id)))

If(Office365Users.UserPhotoMetadata(ThisItem.Id).HasPhoto=false,SampleImage,Office365Users.UserPhotoV2(ThisItem.Id))

If(!IsBlank(Id),If(Office365Users.UserPhotoMetadata(Id).HasPhoto=false,SampleImage,Office365Users.UserPhotoV2(Id)))

Office365Users.UserPhotoV2(ThisItem.Id)


Always have different Error message pops up:

When using Office365Users.UserPhotoV2(ThisItem.Id), got the error below:

Office365Users.UserPhotoV2 failed: { "error": { "code": "AuthenticationError", "message": "Error authenticating with resource", "innerError": { "request-id": "0a63db95-a309-494f-89fb-8284bfdc2fa7", "date": "2019-04-11T15:00:38" } } }


When using If(!IsBlank(Id),If(Office365Users.UserPhotoMetadata(Id).HasPhoto=false,SampleImage,Office365Users.UserPhotoV2(Id))), got the error below:

 

Office365Users.UserPhotoMetadata failed: { "error": { "code": "AuthenticationError", "message": "Error authenticating with resource", "innerError": { "request-id": "58e84667-373e-416a-bb20-c6ca716c1a5b", "date": "2019-04-11T15:06:10" } } }


When using Office365Users.UserPhoto(ThisItem.Id), got the error below:

Office365Users.UserPhoto failed: { "status": 400, "message": "One or more input values is invalid.\r\nclientRequestId: 804fe1a5-c00b-4b8c-8d19-564a5b225aca", "source": "office365users-ne.azconn-ne.p.azurewebsites.net" }


When using
If(!IsBlank(ThisItem.Id),If(Office365Users.UserPhotoMetadata(ThisItem.Id).HasPhoto=false,SampleImage,Office365Users.UserPhoto(ThisItem.Id))) got the error below:

Office365Users.UserPhotoMetadata failed: { "error": { "code": "AuthenticationError", "message": "Error authenticating with resource", "innerError": { "request-id": "83402233-bfe7-4642-8863-48f30a964f58", "date": "2019-04-11T15:13:18" } } }


When using
If(Office365Users.UserPhotoMetadata(ThisItem.Id).HasPhoto=false,SampleImage,Office365Users.UserPhoto(ThisItem.Id)) got the error below:

Office365Users.UserPhotoMetadata failed: { "error": { "code": "AuthenticationError", "message": "Error authenticating with resource", "innerError": { "request-id": "a99d3f39-5eea-4545-94f8-8e36dc33ec86", "date": "2019-04-11T15:15:00" } } }


Mobile phone app shows error below:
PowerappsUserPhotoError.JPG

etc.

I want to avoid the error message. All the function work fine, but still the error messages always come out, very annoying, and I don't know how to interpret the error message and don't know how to fix the error.

 

Can anybody help? How can I fix this?

0 REPLIES 0

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (47,194)