cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

ResourceNotFound error when calling Office365 Users Connector using the Office365Users.DirectReportsV2(txtInfoAbout.Text).xxxxxx function

What is weird is that the function is returning the correct value even though it is barking at me that it can't find the specific resource being queried.

MDS-GS_0-1600459743083.png

Anyone have any thoughts?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver I
Resolver I

Re: ResourceNotFound error when calling Office365 Users Connector using the Office365Users.DirectReportsV2(txtInfoAbout.Text).xxxxxx function

The very strange PowerApps parser strikes again.  After checking and double checking my syntax and still getting the RecordNotFound error, I just saved/published/closed the file.  When I reopened, all is fine.  I suspect that it got a bad record early in the construction process and didn't clear that error until I closed and reloaded.

 

Now the only remaining question is where the documentation between original UserProfile and UserProfileV2 is?  Same for the DirectReportsV2, MyProfileV2, SearchUserV2, UserPhotoV2 methods.  I am curious as to what has changed and is the old one just in there to protect backward compatibility?

 

"mobilePhone: " & Office365Users.UserProfileV2(txtInfoAbout.Text).mobilePhone  and

"mobilePhone: " & Office365Users.UserProfile(txtInfoAbout.Text).mobilePhone

View solution in original post

4 REPLIES 4
Highlighted
Super User III
Super User III

Re: ResourceNotFound error when calling Office365 Users Connector using the Office365Users.DirectReportsV2(txtInfoAbout.Text).xxxxxx function

@markslosberg 
Typically you would receive this error message when an user email that does not exist is supplied to UserProfileV2.

 

Firstly, what happens if you Refresh the Office365Users connector.  Do you still get the error?

Secondly, please show me what formula you are using in the Text property.  Then tell me what happens when you hardcode the email like this "mdevaney@yourcompany.com"

 

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

Highlighted
Resolver I
Resolver I

Re: ResourceNotFound error when calling Office365 Users Connector using the Office365Users.DirectReportsV2(txtInfoAbout.Text).xxxxxx function

That is what is so weird. The email samples  I am putting in are all in the Userlist and as you can see, the correct values are being returned along with the error code. 

I suspect that it is a “permissions” thing somewhere in the chain, possibly from the non-default PowerPlatform environment we are using or something. 

This should just work and as always, the error codes are cryptic and inscrutable. 

Highlighted
Resolver I
Resolver I

Re: ResourceNotFound error when calling Office365 Users Connector using the Office365Users.DirectReportsV2(txtInfoAbout.Text).xxxxxx function

The very strange PowerApps parser strikes again.  After checking and double checking my syntax and still getting the RecordNotFound error, I just saved/published/closed the file.  When I reopened, all is fine.  I suspect that it got a bad record early in the construction process and didn't clear that error until I closed and reloaded.

 

Now the only remaining question is where the documentation between original UserProfile and UserProfileV2 is?  Same for the DirectReportsV2, MyProfileV2, SearchUserV2, UserPhotoV2 methods.  I am curious as to what has changed and is the old one just in there to protect backward compatibility?

 

"mobilePhone: " & Office365Users.UserProfileV2(txtInfoAbout.Text).mobilePhone  and

"mobilePhone: " & Office365Users.UserProfile(txtInfoAbout.Text).mobilePhone

View solution in original post

Highlighted
Resolver I
Resolver I

Re: ResourceNotFound error when calling Office365 Users Connector using the Office365Users.DirectReportsV2(txtInfoAbout.Text).xxxxxx function

and the answer to the question what is the difference between V2 and the older methods in this connector is here

https://docs.microsoft.com/en-us/connectors/office365users/

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published 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 (6,059)