Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Which is the correct error?

(0) ShareShare
ReportReport
Posted on by 130

I have a Flow that has started randomly failing. It worked fine for many hours and then started crashing. It crashes at the same step (so at least that is consistent). However the error codes are not.

 

The Flow is called from a PowerApp which reports a 502 error.

Inspecting the Flow yields a 400 error.

 

Which one is right? I'm suspecting the 502 error as I know the Flow has run successfully many times.

 

I'm also at a loss at how to defend against this fault. I cannot expect users to wait an indeterminate period of time for the 502 to clear.

In PowerAppIn PowerAppIn FlowIn Flow

  • buildbod Profile Picture
    130 on at
    Re: Which is the correct error?

    Yes it still exists but I think I've worked out what is happening. I downgraded my permissions on the SharePoint site from Site Collection Adminstrator to Contribute to finalise some tests. I had been testing the app many, many times with my elevated account.

     

    I am issuing a SharePoint HTTP request to 'Break inheritance'. The person running the Flow only has contribute rights and so the action is failing due to insufficient permissions.  I have rewritten my Flow now to include SharePoint App that has FullControl permission and then replaced the SharePoint HTTP action with a HTTP-HTTP action that includes an Authorization token from the App. This works fine.

     

    I tried adding the Authorization token to the SharePoint HTTP action but that failed. I think it failed as SharePoint was seeing two tokens: one hidden in the Flow action that carries the token of the user executing the Flow and my additional one.

     

    What is confusing is the variation in error messages. Calling the Flow from PowerApps generates one message. Inspecting the Flow another. Neither are correct.

     

     

     

    Original actionOriginal actionRevised actionRevised action

     

  • v-yuazh-msft Profile Picture
    on at
    Re: Which is the correct error?

    Hi @buildbod,

     

    Does your problem still exists?

     

    Could you please share a screenshot of the configuration of your apps and the flow so we would try to provide a proper workaround for you?

     

    Best regards,

    Alice

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow