+ Start a Discussion
Jeff WaalkesJeff Waalkes 

Flow reaching iteration exceeding error

We created a flow back in early June to help automate the updating the milestone completion after an email or phone call was created within a service case. The outcome that we had expected to have was the ability to email or log a call within the case from our customer emailing into a case and have the milestone mark as complete once that communication was logged.
What is occurring on some of the cases is we will get an error that will not allow us to send or update the milestones and communication will not log as complete to our customers. The work around that we have for this is to remove people from the list of email recipients to reduce who is receiving communication.
This is not occurring within every case but on some, I am needing help to understand what is causing this error and how to fix the flow. My theory at the moment is the flow is going through the contacts within our account that we have and not finding a last item to release from the loop inside the flow.


On the times that I do get this error the workaround has been to remove contacts within the email lines and retry the action. This is a trial and error method. There is at times a distribution list email that is connected to the contact. This may be part of the issue. I do know the count cannot exceed a count of 2000. 

User-added image

 
SwethaSwetha (Salesforce Developers) 
Hi Jeff,
Recommend reviewing similar scenario: https://salesforce.stackexchange.com/questions/65256/number-of-iterations-exceeded-flow-error
Check the troubleshooting approach in https://salesforce.stackexchange.com/questions/265720/flow-error-apex-cpu-time-limit-exceeded
https://help.salesforce.com/s/articleView?id=000314438&type=1

If this information helps, please mark the answer as best. Thank you