Error: Collection was modified

Jan 2, 2013 at 9:06 AM

Hi,

We are using the Tellago ESB extension library to read value from context in BRE for a message and then assign required actions to it to resolve the service.

Its working fine most of the time, but everyday we are getting a few failed messages with error:

System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.Dictionary`2.Enumerator.MoveNext()
   at Tellago.SOA.ESB.Extensions.Resolvers.Bre.BRE_ResolverProvider.UpdateContextProperties(MessageContextFactRetriever msgCtxt, BRE bre, IPipelineContext pCtxt, IBaseMessage& baseMsg)

Not really sure why is issue is occuring as there is inconsistency in the failure.

Need help to resolve this issue.

Regards,

Pratish

 

 

Apr 17, 2013 at 10:49 PM
Hi, is there any update to the above question ?
we are also seeing this happen in our environment infrequently,

Reason: Collection was modified; enumeration operation may not execute

When this happens the message fails and suspends when coming via the on-ramp.
Sep 2, 2015 at 2:07 PM
Hi,
is there any update to the above issue.

we are also getting the error as : "Collection was modified; enumeration operation may not execute."
or sometimes "An item with the same key has already been added.".

during this error, the message gets suspended in on-ramp.

Thanks in advance