You need to sign in to do that
Don't have an account?
Johny ABU HANA
Cannot modify a collection while it is being iterated
Hi all
I need some advise on the following error "Cannot modify a collection while it is being iterated"
what can be the issue.
we have checked if the code does any update on loop however we did not find any
please advise ASAP
regards
Johny
I need some advise on the following error "Cannot modify a collection while it is being iterated"
what can be the issue.
we have checked if the code does any update on loop however we did not find any
please advise ASAP
regards
Johny
Sorry for this issue you are facing.
This exception occurs because you are trying to modify some record while you are iterating the same record.
Suggestions: have you add any trigger for this record related object. check for that. Triggers has more potential for this exception
Hope this helps.
Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra
Can you paste the code which is throwing this error so that it would be easy to identify the issue.