cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vstar19
Helper V
Helper V

Get User Profile (V2)

Hello. 

I am using the Get User Profile V2 action to list me supplied user profiles. 

My flow is failing because it cannot find approx 10 user, i receive this error : 

 

{
  "error": {
    "code": "-1, Microsoft.SharePoint.Client.ResourceNotFoundException",
    "message": "Exception of type 'Microsoft.SharePoint.Client.ResourceNotFoundException' was thrown.",
    "innerError": {
      "date": "2022-03-10T11:00:37",
      "request-id": "eacd5ad4-67ef-4833-9b05-2dbb27812061",
      "client-request-id": "fgcc5ad3-67ef-4877-9b75-2dbb26416060"
    }
  }
}

Just as an insight, the Get User Profile V2 is inside a Apply to each loop. There are approx 390 values it apply it to. 380 work fine, but the last 10 keep failing, resulting in the flow failing. 

I presume the users have left the organisation. 

1. How can i confirm if the user has left? via the ID?

2. How can i get the flow to continue to run if it cant find a user?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @Vstar19,

 

If you have an id you could check if the user still exists in Azure, worth checking over there as well.

 

For making sure that the loop continues you could use a configure run after setting on the action directly after the Get User Profile (V2) action.

 

You can make sure it also runs after a has failed. Obviously this doesn't solve your root cause, but it does make sure that the outcome of the total flow is success 😁

 

Below is an example of how you could configure run after.

 

Configure_Run_After_Loop.gif

View solution in original post

1 REPLY 1
Expiscornovus
Super User
Super User

Hi @Vstar19,

 

If you have an id you could check if the user still exists in Azure, worth checking over there as well.

 

For making sure that the loop continues you could use a configure run after setting on the action directly after the Get User Profile (V2) action.

 

You can make sure it also runs after a has failed. Obviously this doesn't solve your root cause, but it does make sure that the outcome of the total flow is success 😁

 

Below is an example of how you could configure run after.

 

Configure_Run_After_Loop.gif

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,980)