1
Vote

encountered disposed crmdbconnection when it should not be disposed

description

Getting an error on workflows distributed 1:N relationships. Workflow changes the owner of the child contacts when the parent account owner is changed.

Full error:

Plugin Trace:

[Crm2011DistributeWF: Gemina.CRM2011.WF.CrmDistributeWF.DistributeWFActivityOnetoMany]
[DWF AG Utilities: Distribute One to Many]



Error Message:

Unhandled Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: ValidateOpen - Encountered disposed CrmDbConnection when it should not be disposed (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault).
at Gemina.CRM2011.WF.CrmDistributeWF.CodeActivityBase.Execute(CodeActivityContext executionContext)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

comments

Brisingar wrote Nov 13, 2015 at 5:12 PM

Nicole_CRM,

I encountered the same problem. There is a patch that fixed the issue available here: http://crm2011distributewf.codeplex.com/releases/view/81453