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

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
GeorgeWinters
Level: Powered On

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
v-siky-msft
Level 10

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

 

 

GeorgeWinters
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,244)