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 : 3h3QPmkYTYEHo3bc1JfEiV
Power Automate - Building Flows
Answered

Error Handling - Status Codes 400, 404, 403

Like (0) ShareShare
ReportReport
Posted on 20 Jul 2022 00:20:44 by 15

Hi All,

 

I'm trying to build in some error handling into a flow I am using which is called via a PowerApp.

The objective of the flow is to check whether a Sharepoint site exists after the user has manually entered the site. 

 

powerflow.png

 

When a correct site is entered the flow works fine and completes as expected.

I have a Switch statement which checks the StatusCode to try and handle the errors.  The switch statement works when the 'Get List' action is successful and StatusCode 200 is passed.

 

However if the 'Get List' action fails, the flow stops with error.  I can see that the StatusCode 400 is in the output however the switch statement doesn't get called as the 'Get List' action fails.

errorhandling.png

Looking for advice how I can do error handling for the above.

  • Verified answer
    aouw006 Profile Picture
    15 on 20 Jul 2022 at 06:17:46
    Re: Error Handling - Status Codes 400, 404, 403

    Edit - Ok Solved.  Key is to use the 'Configure run after'  on the item that fails.

    See below - this allows the flow to continue after the fail and I can catch the error code and provide feedback.

     

    runaftermenu.png

     

    runafter.png

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