Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Apply to each worked fine till yesterday. Today all gone. Require help asap.

Unable to process template language expressions for action 'Apply_to_each' at line '0' and column '0': 'The number of foreach items limit exceeded for action 'Apply_to_each': maximum '5000' and actual '10970'.'.



Appy to each error.JPG

Advocate III
Advocate III

Likely it is an issue with your license. See the below docs article for more details, but as we understand it Flows with a "Low" performance profile are limited to 5000 apply to each loops:

Performance profile Plans

Low- Free
- Microsoft 365 plans
- Power Apps Plan 1, Per App plans
- Power Automate Plan 1
- All license trials
Dynamics 365 Team Member
Medium- Power Apps triggered flows, child flows, Power Apps Plan 2, Power Apps per user plan
- Power Automate Plan 2, Power Automate per user, Power Automate per user with Attended RPA plans
Dynamics 365 Enterprise plans, Dynamics 365 Professional plans
- Dynamics 365 non-licensed users, application users, users with special free licenses
High- Power Automate per flow plan


Name Limit Notes

Apply to each array items5,000 for Low, 100,000 for all othersThis limit describes the highest number of array items that a "apply to each" loop can process.
To filter larger arrays, you can use the query action.


Docs: Limits and configuration - Power Automate | Microsoft Docs

I read that as well. Any workarounds ?

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,925)