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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Office365Users.UserPro...
Power Apps
Answered

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

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

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?

 

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    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

     

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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.


  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @GeorgeWinters, I have an app that was running great with the implementation of your solution. However, a few months ago, the error popped-up again without making any changes to the code. Do you know if there has been an update that has made your solution stop working?

     

    Thanks!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    No, I don't, sorry. I'm not using this workaround presently. 

  • aayaanmayank Profile Picture
    248 on at

    Hi George hope you are doing well!

    Can you please share some workaround on this as i am not able to get rid off this error. below is function which i am using.

    If(!IsBlank(Office365Users.UserProfile(DataCardValue36.Text).DisplayName),(Office365Users.UserProfile(DataCardValue36.Text).DisplayName))

     

  • rajivk Profile Picture
    10 on at

    I am trying to fill the combo box in a gallery with the user object. This approach works well when I do it using SharePoint person field. But when I use SQL server as a DB, where I am storing the user email id instead of user object unlike SharePoint. The combobox does not take the user email id in DefaultSelectedItems property. Following is the code I am using there. If(!IsBlankOrError(ThisItem.Doer),Office365Users.UserProfileV2(ThisItem.Doer)). 

    This code throws "ResourceNotFound" error.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 294 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 169

Last 30 days Overall leaderboard