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 / Failed to loop each ro...
Power Automate
Answered

Failed to loop each row of excel data under For Each

(0) ShareShare
ReportReport
Posted on by 95

Hi,

 

Currently I'm trying to get PAD to loop through each username into a web portal to do a checkup and return the result.

I had set it to runs For each, but in every loop, it will just check on the first username and it doesn't go through the rest of the list.

The whole excel file i only had 1 username column. As per attached is the variable, you can see that under ExcelData there is only 1 columns with 22 rows, but when it runs through Currentitem it only detect 1 username :

 

var.PNG

 

Here is part of the for each flow:

 

so each.PNG

 

Kindly help what kind of command i should input so that it will loop through each row?

 

Thanks

  • Verified answer
    VJR Profile Picture
    7,635 on at

    @foxngn84, can you disable everything else, just keep the For each loop and display each value in a message box. If it is looping fine then something in your logic is causing it to come out of the loop after reading the first name. Labels and Goto statements if not used appropriately can cause such kind of problems (have been since the age of programming 🙂 ) So make sure you set them right.

  • foxngn84 Profile Picture
    95 on at

    @VJR Thanks for the suggestion. 

     

    I did deleted/disabled the labels & goto, everything able to runs smoothly.

    Thanks for the help.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard