Collection was modified; enumeration operation may not execute

“Collection was modified; enumeration operation may not execute.”

I’m getting this error when invoking a workflow file from my main process. The only thing this activity has to do with a collection is passing the in_Config Dictionary as a parameter to the workflow file (see image below). The error doesn’t happen every time it is invoked, but perhaps for circa 1 in 500 transactions. the in_Config is not changed by my process at any point, and was created by the Robotic Enterprise Framework during the init stage.

Does anyone know what the issue might be? I’ve had similar happening in another process, and it was only solved when I stopped passing the dictionary to a sub-workflow, and included all the code in my main workflow.

Thanks

are u deleting something inside for each row

No, I’m not

See if this Helps.