Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Office 365 Users ManagerV2 Error

(1) ShareShare
ReportReport
Posted on by 786

 

Hello,

 

I'd like to somehow handle error that is thrown by connector Office 365 Users when trying to get manager of such user and there is none.

 

Connector throw error message like this on picture (in Czech :)):

GetManagerError.png

 

Function in app:

 

GetManagerError2.png

 

I'm looking for some way to handle this error message, not to be shown to users that are using such app and deliver something like "No Manager assigned" in for example label. As this error (missing manager ofr such user) can appear...

Please please is there some way to handle this? And if not, is there something like this on roadmap? I can imagine like this can be related to Graph API for O365 Users that it will deliver just text - "No Manager" or whatever....

 

P.

 

Categories:
  • Community Power Platform Member Profile Picture
    on at
    Re: Office 365 Users ManagerV2 Error

    âš  Don't panic !

    Simple Enable this:
    Go to
    «Experimental features» section -> Enable «Formula-level error management»

    and Use this Formula: IfError(Office365Users.ManagerV2(User().Email).displayName,"");

    Was glad to help 😊

  • HS-02011419-0 Profile Picture
    on at
    Re: Office 365 Users ManagerV2 Error

    I know this is an old thread but you can find the solution here Hide-error-message-for-Office365users-Manager-function 

  • Verified answer
    vecerpa Profile Picture
    786 on at
    Re: Office 365 Users ManagerV2 Error

    Hi @v-monli-msft,

     

    New Idea posted. It will be nice to have something like this inside PowerApps - https://powerusers.microsoft.com/t5/PowerApps-Ideas/Error-handling-inside-PowerApps-Try-Catch/idi-p/119311#M5093

    P.

  • v-monli-msft Profile Picture
    on at
    Re: Office 365 Users ManagerV2 Error

    Hi @vecerpa,

     

    I'm afraid that you cannot force the error message to not show, please consider to post this idea in the PowerApps Ideas forum, so it might be considered for future releases.

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

    Regards,
    Mona Li

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1