On update of a service activity a sync workflow is triggered and updates the same SA.
This update triggers a second sync workflow where a custom workflow step is added. During the call of this custom step
an error is thrown and process breaks. The error is thrown before it hits any code in the custom step, and all bling bling is stripped out of it (no params etc)
But still the error is thrown.
Sync workflow failed with error message - Unhandled Exception: Microsoft.Crm.Workflow.Services.InvalidCustomActivityExecutionException: Unexpected exception from plug-in (Execute): MyCustomStep: System.AggregateException: One or more errors occurred.
at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout)
at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions)
at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.ExecuteWorkflowUsingInvoker(Activity workflow, ICommonWorkflowContext context)
at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.StartWorkflow(WorkflowActivationData activationData, ICommonWorkflowContext context)
, error code - -2147220891
Does anybody know where this error is coming from? (in the error I only replace the real step name with 'MyCustomStep')
*This post is locked for comments
I have the same question (0)