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 / Apply to Each Erroring...
Power Automate
Answered

Apply to Each Erroring Out Even Though it is Doing Exactly What I Want it to

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am trying to Get Items from a SharePoint list based on two (2) different Select actions. The output of the first Select action is used in a foreach block (Apply to Each action) which then has another foreach block that uses the output of the second Select action. That works fine. Then, within the second foreach block, I have the Get Items action that filters based on three values. The entire process works as the output of the Get Items is exactly what I am trying to get from this. However, the first foreach block errors out and kills the flow. I don't understand why, and there is no useful error message given.

 

Can someone tell me what is causing the issue? Snapshot follows...

 

Unidentified ErrorUnidentified Error

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,923 Most Valuable Professional on at

    Click on th3e Next failed link at the top of the For Each Selected Area loop.  That will take you to the specific loop that had an error.  The first loop had no errors, but it looks like something in the second did.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ah, right. My variable index comparator (indexOfAffectedNetworkServices) for the second foreach block needed to be reset between each iteration of the first foreach block.

     

    Thank you for your guidance!

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 124 Super User 2026 Season 1

#2
Ellis Karim Profile Picture

Ellis Karim 52 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 50

Last 30 days Overall leaderboard