cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yjamous
Helper III
Helper III

How to figure out which part of my code giving my error?

Hi

When I run my application, I get the following error message:

Office365Users.UserPhotoMetadata failed: { "error": { "code": "Request_BadRequest", "message": "Unrecognized query argument specified: 'userId'.", "innerError": { "date": "2021-06-15T03:18:31", "request-id": "a2dd96a4-d709-40ae-af6d-dacc6a9c6457", "client-request-id": "a2dd96a4-d709-40ae-af6d-dacc6a9c6457" } } }

 

How can I know which part of the application throwing this error?

1 ACCEPTED SOLUTION

Accepted Solutions
BCLS776
Solution Sage
Solution Sage

Running a Monitor session while I step through an app has really helped me find nagging bugs and performance issues - have you done that yet?

Looking at the error message, I'd start looking around at how an Office 365 connector is working or a lookup on a person type field.

View solution in original post

2 REPLIES 2
BCLS776
Solution Sage
Solution Sage

Running a Monitor session while I step through an app has really helped me find nagging bugs and performance issues - have you done that yet?

Looking at the error message, I'd start looking around at how an Office 365 connector is working or a lookup on a person type field.

View solution in original post

After checking, I found out that code that I put for image property causing this problem:

 

If(Office365Users.UserPhotoMetadata(DataCardValueRSMEmail).HasPhoto = true,
Office365Users.UserPhotoV2(DataCardValueRSMEmail),blankPerson)

 

I'm checking if the person has NO photo, then I used blankPerson photo, but if there's photo, then I'm using it.

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

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,352)