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

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

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (12,895)