cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GeorgeWinters
Advocate I
Advocate I

Office365Users.UserProfileV2 failed: { "statusCode": 404, "message": "Resource not found" }

I have a PowerApps app which uses the Office365UserProfileV2 connector.

This message appears at runtime but not in preview.

How do I go about finding more information about this error?

 

1 ACCEPTED SOLUTION

Accepted Solutions

For your information I've solved it in this way:

If(
!IsBlankOrError(glryDirectory.Selected.Mail),
Office365Users.UserProfileV2((glryDirectory.Selected.Mail))
)

------------------
Note that glryDirectory has as its Item property a Office365Users call of its own:

Sort( Filter( Office365Users.SearchUser( {searchTerm:Trim(PeopleSearchBox1.Text), top:75}), AccountEnabled,), DisplayName,Ascending)

 

============
My theory is that this is an 'order of operations' problem -- that the UserProfileV2 runs before the value of glryDirectory.Selected.Mail finishes processing - so it runs with a blank value for mail, which of course is invalid.

 

 Notice the ! NOT operator before IsBlank.


View solution in original post

2 REPLIES 2
v-siky-msft
Community Support
Community Support

Hi @GeorgeWinters,

 

Can you share more details with your apps?

What is your formulas with Office365.UserProfileV2 function?

Which control do you apply that function to?

 

Have you ever tried to delete Office365 connection and re-add it to check if the issue is gone?

Also i think you should post more information, so that we can be easier to helo you.

Best regards,

Sik

 

 

For your information I've solved it in this way:

If(
!IsBlankOrError(glryDirectory.Selected.Mail),
Office365Users.UserProfileV2((glryDirectory.Selected.Mail))
)

------------------
Note that glryDirectory has as its Item property a Office365Users call of its own:

Sort( Filter( Office365Users.SearchUser( {searchTerm:Trim(PeopleSearchBox1.Text), top:75}), AccountEnabled,), DisplayName,Ascending)

 

============
My theory is that this is an 'order of operations' problem -- that the UserProfileV2 runs before the value of glryDirectory.Selected.Mail finishes processing - so it runs with a blank value for mail, which of course is invalid.

 

 Notice the ! NOT operator before IsBlank.


View solution in original post

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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,342)