cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Advocate I
Advocate I

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

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
Highlighted
Community Support
Community Support

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

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

 

 

Highlighted
Advocate I
Advocate I

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

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,067)