Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

create team with Power Automate - resource not found - sometimes

I have a flow that creates a Team.  I have a 1 minute delay then down the flow we need to get more info so I can create a link to the SP site created by the Team.  I use an http call with Graph and that works most of the time.  On occasion it fails with "Resource not Found"  I created a run after so that if it fails we wait 15 minutes and try again, now that one occasionally fails too.  Any idea why the issue is intermittent?  


further, before I invoke the graph call I get the Team using the new team id, use that ID to get the group, then in the graph call it fails, even though both of the previous calls work and yield correct results.


Here is the input for the graph call:


    "retryPolicy": {
    "authentication": {
and the outputs:
    "headers": {
        "x-ms-ags-diagnostic""{\"ServerInfo\":{\"DataCenter\":\"West US\",\"Slice\":\"E\",\"Ring\":\"4\",\"ScaleUnit\":\"000\",\"RoleInstance\":\"BY1PEPF0000322A\"}}",
        "Date""Tue, 13 Jul 2021 17:44:03 GMT",
    "body": {
        "error": {
            "message""Resource is not found.",
            "innerError": {
again, this only happens once every 20 to 40 times.  let me know if you have ideas, as I said, i've already introduced 2 separate delays of 5 minutes and then on a run after another 15 minute delay so it doesn't seem to be a provisioning issue.
Regular Visitor



I thought i would share my way of working around this isssue, it is as follows:


Basically it is a do-while loop, i check until the response status starts with "2", in case of "resource not found" it starts with "4". So sometimes it works right after the creation of the team, and sometimes i see it loops up to 8 times.


But i find this way to be more reliable than with a fix delay of 5 minutes.


Hope it helps!!




Helpful resources

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 (3,082)