cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Karamjeet
Level: Powered On

Get User Profile (v2) fails the first time, works subsequently

Hello,

 

I am having an issue where the Get User Profile (v2) action is failing the first time it's run after user creation (and 1 minute pause after creation) but works on subsequent tries. Has anyone come across this peculiar issue? Any suggestions on how to get it to work the first time? I can verify that the user actually exists when the action is run.

 

{
  "error": {
    "code": "-1, Microsoft.SharePoint.Client.ResourceNotFoundException",
    "message": "Exception of type 'Microsoft.SharePoint.Client.ResourceNotFoundException' was thrown.",
    "innerError": {
      "request-id": "7a0e8774-7fc3-47a6-b730-5db288e0c85e",
      "date": "2019-02-07T15:55:05"
    }
  }
}

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Get User Profile (v2) fails the first time, works subsequently

Hi @Karamjeet ,

 

Thanks for updating.

I am glad to hear that you have figured out a solution for this issue.

Please feel free post Microsoft Flow related issue at here, we are always ready to help.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Community Support Team
Community Support Team

Re: Get User Profile (v2) fails the first time, works subsequently

Hi @Karamjeet,

 

Could you share a screenshot of the flow?

Do you mean that the flow fails the first time the user creates an item to trigger the flow?

I have created a flow likes below which doesn’t have the issue you mentioned. It will return user profile whenever the flow is triggered.

1.PNG

Please share more details on the flow to help reproduce this issue.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Karamjeet
Level: Powered On

Re: Get User Profile (v2) fails the first time, works subsequently

Hi Mabel,

 

The action fails the first time it runs after a **new user** is created in the system. I works the second time the flow is run.

 

 

I have since changed the action  I use to Get Azure AD User and it seems to be working fine.

 


Community Support Team
Community Support Team

Re: Get User Profile (v2) fails the first time, works subsequently

Hi @Karamjeet,

 

Please share a full screenshot of your flow?

You mentioned “after a new user is created in a system”, which trigger are you using?

If possible, please add an action Delay to run the following actions 1 or 2 minutes after it is triggered.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Karamjeet
Level: Powered On

Re: Get User Profile (v2) fails the first time, works subsequently

I had tried adding a 1 minute delay but it didn't help. In any case, since the Azure AD action works, so this has been resolved for me. Thanks for your help.

Community Support Team
Community Support Team

Re: Get User Profile (v2) fails the first time, works subsequently

Hi @Karamjeet ,

 

Thanks for updating.

I am glad to hear that you have figured out a solution for this issue.

Please feel free post Microsoft Flow related issue at here, we are always ready to help.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 460 members 6,611 guests
Please welcome our newest community members: