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 / Adventures in error ha...
Power Automate
Unanswered

Adventures in error handling

(0) ShareShare
ReportReport
Posted on by 165
Within a scope, had an Apply to loop that generated intentional, handled errors (checking for SharePoint Item Column type). This caused the loop to end with status 'Failed' (whatever). Since the Action after the loop hadn't been set to run on error, my Catch block (Run after Failed) was being invoked after the Try block.

I found this counterintuitive as I assumed that handling an error would not cause its parent to be marked as Failed. There's more nuance than that. Just sharing to spare someone else the research. Picture shows the bottom of the loop with three sequential actions (the first a Condition). Marking it to Run After Failed (and Success) fixed my issue.

While I'm on the topic, I have lots of Column names stored as configuration information in Items (just text). At runtime, I don't know what type of Column it is, which is problematic because it can contain a single value, multiple values, an object, or an array of objects. I use variable assignments with error handling to figure it out.

Anybody else have a better approach?
Categories:
I have the same question (0)
  • David_MA Profile Picture
    14,956 Super User 2026 Season 1 on at

    Thanks for the details you shared. I want to make sure I’m understanding your setup correctly before anyone tries to offer solutions.

    Are you building this as a child flow that will be called by other parent flows, where the parent passes in the column names and values at runtime? That would explain why you don’t know the field types in advance, since a child flow doesn’t have access to the SharePoint list schema and can only work with whatever JSON it receives.

    If that’s the case, could you clarify how your parent flow selects the fields and what the overall use‑case is? Understanding whether this is part of a reusable helper flow (for validation or error checking) will help others give you more targeted suggestions.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard