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 in For ...
Power Automate
Unanswered

Error handling in For Each

(0) ShareShare
ReportReport
Posted on by
Hi
 
I have a flow where i look for files based on a salary number extracted from an Excel table. If the file does not exist, i just want the flow to go to the next loop. However, even though i have added a Scope Action and the flow actually does what it needs to do, I get an error that the Get File Action fails, because it cannot find a a file. Is there a way to make sure the flow does not end i Failed state?
 
Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,508 Moderator on at
    @SB-20012004-0 It's hard to offer any recommendations without seeing your full flow and the logic behind it. Toggle off the New Designer and click each action to expand it. Upload a screenshot of your flow in edit mode.
  • David_MA Profile Picture
    14,509 Super User 2026 Season 1 on at
    How are you searching for the files? I don't see a get files action in your flow. And then how do you check if it found a file or not? I don't see any conditions in your flow to do that type of check. As @creativeopinion said, you'll need to show the rest of the flow especially the portion of the flow where you're searching for the document and the logic to see if it found one matching your criteria.
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at
    As others have said, we need to see more of your Flow in order to offer a complete answer.  That said, you may want to take a look at using the run after feature.  Here is a good reference

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,005

#2
Valantis Profile Picture

Valantis 825

#3
Haque Profile Picture

Haque 619

Last 30 days Overall leaderboard