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

book

Article ID: 158434

calendar_today

Updated On:

Products

Workflow Solution

Issue/Introduction

The error listed below has been occuring in a 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. There is a Refresh Page On Timer component on the form set to 10 minutes to refresh the page.  It has also occured when clicking the "SEARCH USER" component.

 

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)

and 

"Error,Thursday, August 22, 2013 9:40:51 AM,Error Occurred within Select Primary SubDialog Component: Save Priority Message: Collection was modified; enumeration operation may not execute. 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.Default.Process.EmbeddedModelComponent.Run(IData data) at LogicBase.Core.ExecutionEngine.SinglePathProcessComponentExecutionDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context) at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.RunComponent(TLExecutionContext context, IData data, IOrchestrationComponent comp)"

 

 

 

 

Cause

 A lock was missing around a clone operation in workflow code.

Resolution

This has been resolved in Workflow build 7.1.1600.66, and all version including and after 7.5.   Please contact support to obtain the correct version or upgrade for your environment.


Applies To

 Workflow 7.1