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

Notifications

Announcements

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

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,717 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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard