web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error Handling - Statu...
Power Automate
Answered

Error Handling - Status Codes 400, 404, 403

(0) ShareShare
ReportReport
Posted on 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.

Categories:
I have the same question (0)
  • Verified answer
    aouw006 Profile Picture
    15 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard