web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ResourceNotFound error...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 142

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?

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at

    @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." 

  • MS-22072102-0 Profile Picture
    142 on at

    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. 

  • Verified answer
    MS-22072102-0 Profile Picture
    142 on at

    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

  • MS-22072102-0 Profile Picture
    142 on at

    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/

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard