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

Community site session details

Session Id : 2sOP+JAh1V1JRvRwVZWG4i
Power Automate - Building Flows
Unanswered

Handling Office 365 Users Get Manager 404 not found error

Like (0) ShareShare
ReportReport
Posted on 9 Sep 2019 09:32:05 by

Hi everyone,

 

I'm just new to MS Flow and I wanted to try tu build an appobation demand using Froms/Approvals/Sharepoint.

 

But I want my demands to be approved by the manager of the one completing the form. The issue is that in my organisation, not everyone has an manager identified in AAD.

 

So I designed my flow to handle the fact that the Get-Manager function can be passed because the demander has no Manager identified.

 

The problem is that whenever this case occurs, the flow is marked has failed because the Get-Manager function returned an 404 error.

 

My question is this : is there any mean to avoid getting those errors by handling the 404 error of Get-Manager directly in the flow ?

  • baaaailey Profile Picture
    23 on 21 Apr 2021 at 19:00:37
    Re: Handling Office 365 Users Get Manager 404 not found error
    I'm having the exact same problem here. i can confirm the the responders email is being returned correctly.
  • ScottShearer Profile Picture
    25,236 Most Valuable Professional on 16 Sep 2019 at 14:00:49
    Re: Handling Office 365 Users Get Manager 404 not found error

    @Anonymous 

    Can you verify that you are getting Responders Email back for Forms?  Take a look at the output form Get Response Details.

     

  • Community Power Platform Member Profile Picture
    on 16 Sep 2019 at 13:53:07
    Re: Handling Office 365 Users Get Manager 404 not found error

    @ScottShearer 

     

    Sorry it was the wrong screenshot, the item used by GetResponsableV2 is Responder's Mail.Failed flow 2.png

  • ScottShearer Profile Picture
    25,236 Most Valuable Professional on 16 Sep 2019 at 13:46:22
    Re: Handling Office 365 Users Get Manager 404 not found error

    @Anonymous 

    Get Manager requires either an email address or UPN - what is being returnd in body/responder ?

     

  • Community Power Platform Member Profile Picture
    on 16 Sep 2019 at 13:43:41
    Re: Handling Office 365 Users Get Manager 404 not found error

    Failed flow 2.png

     

    @ScottShearer 

     

    Here's the screenshot you asked for but I'm afraid there's nothing much in it...

     

     

  • ScottShearer Profile Picture
    25,236 Most Valuable Professional on 16 Sep 2019 at 13:04:58
    Re: Handling Office 365 Users Get Manager 404 not found error

    @Anonymous 

    Can you post a screen shot of your get manager action in edit mode?  It would be helpful to see how Get manager is configured.

     

     

  • Community Power Platform Member Profile Picture
    on 16 Sep 2019 at 10:17:27
    Re: Handling Office 365 Users Get Manager 404 not found error

    Failed flow.png

     

    Hi @ScottShearer ,

     

    I already did what you said, configuring the "run after" item and my flow is succesfully runnnig through all the steps I configured but in the end (despite the flow being fully executed) the flow is still tagged as Failed and some mails are spamming me about that failed execution..

  • ScottShearer Profile Picture
    25,236 Most Valuable Professional on 09 Sep 2019 at 16:42:32
    Re: Handling Office 365 Users Get Manager 404 not found error

    @Anonymous 

    It would be best to create a new post with your issue.  When doing so, please post a screen shot of your Flow.

     

     

     

  • Community Power Platform Member Profile Picture
    on 09 Sep 2019 at 16:21:17
    Re: Handling Office 365 Users Get Manager 404 not found error

    Hi Scott. Im running into a "User not found" when I run the Getmanagerv2 in my flow. Within office365 the person whom I used as a tester has a manager listed. I have verified with our Azure tennant admins that all users have manager populted but It just wont resolve.....Im stuck. Without the getmanager function working, the use of MSflow in my org is limited.

     

    Appreciate any thoughts.

     

    Thanks.

     

    Mike.

  • ScottShearer Profile Picture
    25,236 Most Valuable Professional on 09 Sep 2019 at 14:13:02
    Re: Handling Office 365 Users Get Manager 404 not found error

    @Anonymous 

    Take a look at the "Configure Run After" setting for the action generating the error.  You can configure an action only to run of the action immediately before it has generated an error.  Here is a link to a blog post that discusses this technique.

     

    Another option might be to check the value of the manager before assigning the approver in the approval action.  Have a condition - if the manager is null, the assign another individual as a manager.  This implies that you'lll be using a variable to store the manager.

     

    If you need an example, please let me know.

     

     

     

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete