If your Flow in API version 56.0 and earlier receives the “Number of iterations exceeded” error, it may be because of a Loop element that’s trying to process more records. We have a limit of 2000 executed elements at run time.
Flow Builder
In Salesforce Flow API version 56.0 and earlier, a maximum of 2000 Flow elements can be executed at runtime. When a Flow contains a Loop element, each element inside the loop is counted as an executed element for every record that passes through the loop. For example, a Flow with a Get Records element, a Loop containing two Assignment elements, and a final Update Records element counts as: 1 (Get Records) + [number of records × 3 (Loop + 2 Assignments)] + 1 (Update Records). If this total exceeds 2000, the "Number of Iterations Exceeded" error occurs.
Note: The following are possible suggestions to work around this limit. Any implementation changes to Flow logic are outside the scope of Salesforce Support.
In API version 57.0, the limit of 2000 Flow elements was removed. In API version 56.0 and earlier, flows could have a maximum of 2000 Flow elements. For more information on the latest version, visit the product Help on General Flow Limits.
000382258

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.