Workflow Soluiton

 View Only
Expand all | Collapse all

Collection was modified; enumeration operation may not execute.

Aryanos

AryanosApr 12, 2013 09:45 AM

  • 1.  Collection was modified; enumeration operation may not execute.

    Posted Mar 27, 2013 03:46 PM

    I am randomly getting the following error in a Workflow project and a WebForm project (Workflow 7.1 SP2):


    Component Name: Request for Extension

    Exception Message: Collection was modified; enumeration operation may not execute.

    Error Stack Trace:

    System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Hashtable.HashtableEnumerator.MoveNext() at LogicBase.Core.Data.OrchestrationData.Clone(Boolean allowExternal) at LogicBase.Components.FormBuilder.FormBuilderComponentRenderer.GetRenderData(IData data) at LogicBase.Components.FormBuilder.FormBuilderComponentRenderer.LoadComplete() at LogicBase.Components.FormBuilder.FormBuilderComponent.LogicBase.Core.Models.Dialog.IAspNetPageComponent.LoadComplete(ComposerForm page) at LogicBase.Core.Models.Dialog.ComposerForm.OnLoadComplete(EventArgs e)


    I've been randomly getting it inside a new "Time Tracking" web form project that has two grid components inside of the main form. The error only seems to trigger after a user has left the form open for a period of time and then tries to start working in it again. I do have a Refresh Page On Timer component on the form set to 10 minutes to refresh the page.

    For the workflow project, the error has only happened once so far inside a Dialog Workflow with the initial entry form (Component Name: Request for Extension). The strange thing is the workflow project has no collection/array type of variables in it so I'm wonder what might be triggering the error "Collection was modified; enumeration operation may not execute."

    Thanks for any suggestions on how to fix this!



  • 2.  RE: Collection was modified; enumeration operation may not execute.

    Posted Mar 27, 2013 04:33 PM

    Usually for page timeouts, i change the Idle Time-out (minutes) value for the application pool.  Give that a shot and see what happens.



  • 3.  RE: Collection was modified; enumeration operation may not execute.

    Posted Mar 27, 2013 04:52 PM

    This was (supposedly) fixed in the 7.1 Sp2 MP1 release... we added a lock around the Clone operation that some customers were getting.



  • 4.  RE: Collection was modified; enumeration operation may not execute.

    Posted Apr 09, 2013 12:41 PM

    I'm getting this issue randomly as well. reecardo, is there going to be a fix for 7.1 SP1 released for this? 



  • 5.  RE: Collection was modified; enumeration operation may not execute.

    Posted Apr 09, 2013 01:27 PM

    This would be really easy to push down to our SP1 rollup. contact support and reference this Connect thread.



  • 6.  RE: Collection was modified; enumeration operation may not execute.

    Posted Apr 12, 2013 09:45 AM

    Thanks reecardo, I'll do that.



  • 7.  RE: Collection was modified; enumeration operation may not execute.

    Posted Jun 03, 2013 04:18 PM

    I updated our Workflow Server from 7.1 SP2 to 7.1 SP2 MP1.1 this past weekend. I then updated my Workflow Designer system from 7.1 SP2 to 7.1 SP2 MP1.1, recompiled the integration library and web form project that was having the issue and re-published them to the server this morning. The random "Collection was modified; enumeration operation may not execute." errors are still happening though. Any other thoughts?

    Thanks



  • 8.  RE: Collection was modified; enumeration operation may not execute.

    Posted Jun 03, 2013 04:49 PM

    Please don't tell me that, we just got a rollup with the fix for it and I'm planning to put it in this week so hearing it didn't resolve the issue is concerning.



  • 9.  RE: Collection was modified; enumeration operation may not execute.

    Posted Aug 05, 2013 05:25 AM

    I am also getting this error randomly in my project.

    I am running SMP 7.1 SP2 (7.1.8280)

     

    Did you manage to fix this? If so, what worked?



  • 10.  RE: Collection was modified; enumeration operation may not execute.

    Posted Aug 05, 2013 07:24 AM

    Btw. I have already experimented with application pool timeouts and the error is not related to that setting. So my guess would be that it is indeed a bug in Workflow.

    Therefore I am interested in hearing what version actually fixed this if any?



  • 11.  RE: Collection was modified; enumeration operation may not execute.

    Posted Aug 05, 2013 08:59 AM

    There was a checkin around this that should have showed up in the 7.1 Sp2 MP1 release (and all releases past that). Some customers were reporting issues around this, and some code was added (basically, the C# just added a lock around a Clone operation in WF)



  • 12.  RE: Collection was modified; enumeration operation may not execute.

    Posted Aug 05, 2013 09:57 AM

    My "resolution" to the issue was to remove alot of the complexity of trying to use dynamic item source models in 3 ajax labels and a grid component, as these were all triggering the error. I was under pressure by managment to get this process into production so I kept it simple and just used some javascript to hit a hidden button to pass out of the form to do all the variable updates and pass back in static values.

    I haven't had any issues since then but of course it's only a workaround and not a true "fix".



  • 13.  RE: Collection was modified; enumeration operation may not execute.

    Posted Aug 06, 2013 02:04 AM

    It seems from this comment and this comment that the check-in wrt. adding a lock did not resolve the issue.

    Do you have some sort of public bug tracking, where I can monitor when this issue is resolved?

    I have a production system with daily crashes due to this problem.



  • 14.  RE: Collection was modified; enumeration operation may not execute.

    Posted Aug 06, 2013 02:16 AM

    Not the best news, but thank you for the very detailed information on a viable workaround.



  • 15.  RE: Collection was modified; enumeration operation may not execute.
    Best Answer

    Posted Aug 14, 2013 12:01 PM

    This should be fixed in Workflow build 7.1.1600.66.  And fixed in 7.5, which is where Workflow only customers should be at.  If there are still problems, please contact support with debug level logs.   We also do not maintain a public list of bugs to be tracked.  While that may seem like a nice feature for external customers, I am sure that you can understand why that information is kept internal.

    Thank You for the continued feedback on this issue.



  • 16.  RE: Collection was modified; enumeration operation may not execute.

    Posted Sep 30, 2013 02:38 AM

    Just to let you know: it has not been fixed in Workflow build 7.1.1600.66.

    The frequency of the error has decreased, but it is not gone.

    So I don't think it would be right to mark it as a solution. I have an ongoing support case where the problem is under further investigation.



  • 17.  RE: Collection was modified; enumeration operation may not execute.

    Posted Oct 03, 2013 01:43 PM

    I get this error randomly and it is really frustrating as it happens on a Multiple Value Mapping and Single Value Mapping components that is an important piece of the workflow. As I mentioned above when this happens and you try it again right away it works.



  • 18.  RE: Collection was modified; enumeration operation may not execute.

    Posted Oct 17, 2013 12:01 PM

    I was told by Support that this issue still exists in WF 7.5. Can someone from Symantec please let me know if this is going to be fixed soon in a hot fix or next update?



  • 19.  RE: Collection was modified; enumeration operation may not execute.

    Posted Oct 17, 2013 12:15 PM

    like Matzebru, i removed some ajax labels and all is now well.  no longer having this issue.  seems that when an ajax label is merging a piece of an array, it triggers this error.  it was for me, anyway.



  • 20.  RE: Collection was modified; enumeration operation may not execute.

    Posted Oct 17, 2013 01:03 PM

    It's happening on the data mapping components for me and I'm not using any ajax labels. 



  • 21.  RE: Collection was modified; enumeration operation may not execute.

    Posted Oct 17, 2013 02:49 PM

    We have recently checked in a fix for this reopened issue into our trunk. To my knowledge, it has not been pushed back down to any rollups. If there is a need, I would contact support and request it.



  • 22.  RE: Collection was modified; enumeration operation may not execute.

    Posted Oct 17, 2013 03:13 PM

    Hi reecardo,

    I was told that the 7.1 WF and SD platforms have been EOL so would they still be able to push this into a rollup for 7.1 SP1?



  • 23.  RE: Collection was modified; enumeration operation may not execute.

    Posted Oct 18, 2013 09:15 AM

    I know this has been put into the SP2 rollup (as of today)... and it's not too complex where it could be put back into an SP1 rollup.



  • 24.  RE: Collection was modified; enumeration operation may not execute.

    Posted Oct 18, 2013 09:20 AM

    Thanks reecardo, I'll contact support and hopefully they can provide a rollup.