2
Vote

FIXED!workflow called by record field change by another workflow

description

FIXED!This plug in is great by the way! However, I am having a problem with it.
 
I have a workflow using this plug in that changes the parent record status. The parent record has a workflow that is called when the status changes that uses this plug in again in a workflow to change the status of the child records. Below is the error I get. This works great until the parent record status changes from the workflow, instead of by a user. Any ideas?
 
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) in C:\dev\tfs10\crm2011distributewf\Crm2011DistributeWF\Crm2011DistributeWF\CodeActivityBase.cs:line 94
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

dweinant wrote Feb 17, 2012 at 6:54 PM

The patch for this plugin fixed the problem! This works great!!!

wrote Feb 17, 2012 at 6:55 PM

wrote Jul 12, 2012 at 12:23 PM

wrote Feb 14, 2013 at 8:15 PM