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 / 2048 row For Each loop...
Power Automate
Suggested Answer

2048 row For Each loop limit - options for increase ?

(0) ShareShare
ReportReport
Posted on by 15
Hi There
 
I need to use a for each loop to cycle through a get rows query, and process each row to an HTTP endpoint. I have tried to build the process in Power Automate and in Azure Logic Apps, but in both processes, I am hitting a limit of 2048 records per loop. What would be the best way to solve for loops that need to process approx. 10000 rows per loop ?
 
Thanks
Dom
2025-07-04_155524.jpg
Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,990 Super User 2026 Season 1 on at
    Could you explain a bit more about the overall process?

    It would help to know:

    • What kind of data you're working with and where it’s coming from
    • Why each row needs to be sent individually to the HTTP endpoint
    • What the endpoint does with the data
    Understanding the full scenario may help us figure out if there's a way to reduce the number of loops,  and optimise the overall flow.
     
     
    Ellis Karim
    Ellis Karim
    Blog | LinkedIn | Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
     
     
  • Suggested answer
    Infamous_Let Profile Picture
    332 Super User 2026 Season 1 on at

    This is a common challenge with Power Automate and Logic Apps  both have limits on how many items you can loop through at once. Since you need to process around 10,000 rows, you'll need to break it up a bit.

    The most straightforward way is to enable pagination on your "Get Rows" step and then split the data into smaller chunks using the chunk() function. For example, you can break the full list into batches of 1000 and loop over each batch. This helps avoid hitting the loop limits and keeps things manageable.

    If you're pulling from a database like SQL Server, a better option is to paginate directly in your SQL query using OFFSET and FETCH. That way, you only grab 1000 rows at a time and loop until there’s no more data.

    For more advanced or large-scale processing, consider using Azure Durable Functions or Azure Data Factory. They’re built to handle bigger volumes and complex flows more efficiently than Logic Apps or Power Automate.

  • Chriddle Profile Picture
    8,672 Super User 2026 Season 1 on at
    There's no such limit in Power Automate's "Apply to each"!
    There may be a limit, but it's certainly higher than 2048 iterations. (Certainly higher than I'd like to try.)
  • DomAinSA Profile Picture
    15 on at
    @Infamous_Let
     
    This sounds like the approach that I need - do you have a visual example of how something like this would work ? I am struggling to picture it
     
     
     190 on 04 Jul 2025 at 17:14:10
    2048 row For Each loop limit - options for increase ?

    This is a common challenge with Power Automate and Logic Apps  both have limits on how many items you can loop through at once. Since you need to process around 10,000 rows, you'll need to break it up a bit.

    The most straightforward way is to enable pagination on your "Get Rows" step and then split the data into smaller chunks using the chunk() function. For example, you can break the full list into batches of 1000 and loop over each batch. This helps avoid hitting the loop limits and keeps things manageable.

    If you're pulling from a database like SQL Server, a better option is to paginate directly in your SQL query using OFFSET and FETCH. That way, you only grab 1000 rows at a time and loop until there’s no more data.

    For more advanced or large-scale processing, consider using Azure Durable Functions or Azure Data Factory. They’re built to handle bigger volumes and complex flows more efficiently than Logic Apps or Power Automate.

  • Suggested answer
    Infamous_Let Profile Picture
    332 Super User 2026 Season 1 on at
    I believe if you build this flow it will help you understand how it works 



    in the Get Items go to settings and turn on pagination and set the threshold higher than the expected amount of records as shown below

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard