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 connect...
Power Apps
Suggested Answer

Office365Users connector error

(0) ShareShare
ReportReport
Posted on by 4
Hello
 
When trying to load app Office365Users connector failed error keep showing.
 
It's mostly runtime error, and I tried to fix it but it's not working.
 
I think this issue was due to loading time because these all below error would be gone after few seconds or few minutes.
 
But I would like to not show these below error when loading app.
 
Could you please share any ideas with me?
 
 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,401 Most Valuable Professional on at
    Can you please post the code (in Text) that is generating this error.
  • AY-10120606-0 Profile Picture
    4 on at
    Hi, 
     
    I have a gallery on screen and code on items' property is below. please see below....
     
    DataCardValue116 is requester email address from form.
    DatacardValue79 is also approver's email address from form.
     
    [
        {
            Step: 1,
            Name: If(ApprovalForm5.Mode=2,Office365Users.UserProfile(DataCardValue116.Value).DisplayName,VarUserDispName),
            Title: If(ApprovalForm5.Mode=2,Office365Users.UserProfile(DataCardValue116.Value).JobTitle,VarUserJobTitle),
            Email: If(ApprovalForm5.Mode=2,Office365Users.UserProfile(DataCardValue116.Value).Mail,UserEmail),
            Status: Switch(LookUp(ColFinARCData,ID=Value(DataCardValue102.Value),Status.Value),"Submitted",1,"Pending",1,"Rejected",1,"Cancelled",2,3),    
            Current: If(ApprovalForm5.Mode=1,true,false)
        },
        {
            Step: 2,
            Name: DataCardValue96.Value,
            Title: "",
            Email: "",
            Status: If(And(ApprovalForm5.Mode=2,CountRows(Filter(DeptStatusCheck,Status.Value <> "Updated"))=0),1,3),
            Current:If(And(ApprovalForm5.Mode=2,CountRows(Filter(DeptStatusCheck,Status.Value <> "Updated"))<>0),true,false)
        },
        {
            Step: 3,
            Name: Office365Users.UserProfile(DataCardValue79.Value).DisplayName,
            Title: Office365Users.UserProfile(DataCardValue79.Value).JobTitle,
            Email: Office365Users.UserProfile(DataCardValue79.Value).Mail,
            Status: Switch(LookUp(ColFinARCData,ID=Value(DataCardValue102.Value),Status.Value),"Pending",3,"Approved",1,"Rejected",2,3),
            Current:If(And(ApprovalForm5.Mode=2,CountRows(Filter(DeptStatusCheck,Status.Value <> "Updated"))=0,LookUp(ColFinARCData,ID=Value(DataCardValue102.Value),Status.Value)="Pending"),true,false)
        }
    ]
  • Suggested answer
    WarrenBelz Profile Picture
    154,401 Most Valuable Professional on at
    Hi @AY-10120606-0​​​​​​​
    I have consolidated a bit so it is easier to see any possible issue - try this for a start. Also please confirm the contents of DataCardValue116 and 79 as they need to contain email addresses that are in your Tenant Entra. The error on GetManager is not related to this code as you are not calling that function here (so it must be somewhere else).
    With(
       {
          _User1: Office365Users.UserProfileV2(DataCardValue116.Value).value,
          _User2: Office365Users.UserProfileV2(DataCardValue79.Value).value,
          _Mode2: ApprovalForm5.Mode = 2,
          _Status: 
          LookUp(
             ColFinARCData,
             ID = Value(DataCardValue102.Value),
             Status.Value
          ),
          _Updated:
          CountRows(
             Filter(
                DeptStatusCheck,
                Status.Value <> "Updated"
             )
          )
       },
       Table(
          {
             Step: 1,
             Name: 
             If(
                _Mode2,
                _User1.DisplayName,
                VarUserDispName
             ),
             Title: 
             If(
                _Mode2,
                _User1.JobTitle,
                VarUserJobTitle
             ),
             Email: 
             If(
                _Mode2,
                _User1.Mail,
                UserEmail
             ),
             Status: 
             Switch(
                _Status,
                "Submitted",
                1,
                "Pending",
                1,
                "Rejected",
                1,
                "Cancelled",
                2,
                3
             ),    
             Current: ApprovalForm5.Mode = 1
          },
          {
             Step: 2,
             Name: DataCardValue96.Value,
             Title: "",
             Email: "",
             Status: 
             If(
                And(
                   _Mode2,
                   _Updated = 0
                ),
                1,
                3
             ),
             Current:
             And(
                _Mode2,
                _Updated <> 0
             )
          },
          {
             Step: 3,
             Name: _User2.DisplayName,
             Title: _User2.JobTitle,
             Email: _User2.Mail,
             Status: 
             Switch(
                _Status,
                "Pending",
                3,
                "Approved",
                1,
                "Rejected",
                2,
                3
             ),
             Current:
             And(
                _Mode2,
                _Updated = 0,
                _Status = "Pending"
             )
          }
       )
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee
  • WarrenBelz Profile Picture
    154,401 Most Valuable Professional on at
    @AY-10120606-0​​​​​​​
    A quick follow-up to see if you received the answer you were looking for or if you need further assistance.

    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard