I am dealing with two objects: Accounts and Donor Programs.
Accts and DPs have a lookup relationship via the Accts.[Donor Program] field. Accts.[Donor Program] field populates with 'Partner' if a donor donates a certain amount.
I have a scheduled triggered flow that loops through all 'partner' accounts (low-level donors). Then, it updates the "roll-up summaries" to the Partners Donors Programs record on the DP object.
Because the flow is looping through a big set of data, it has exceeded the number of iterations.
In attempts to resolve this, I have tried the using event platform suggested in this post. and also the DSLR -- but so far no luck.
How to bypass the number of iterations exceeded error as mentioned in the knowledge article:
- Reduce the total number of records being processed. Process the records in multiple batches.
- Keep your own counter using a number variable and increment it every loop, exiting the loop when you're about to hit a limit.
- Consider adding a screen or wait element before looping through next batch of records.
- Check for alternatives using Apex code.
See my previous post for additional info: Trigger to Count Number of Accounts to Custom Object Field