SerializationException when calling on-demand w/f from plugin? RRS feed

  • Question

  • Hello, I'm trying to programmatically call a workflow from a plugin using the following code:

    var wfId = new Guid("D28FBBEC-6440-4331-B4AA-58A8C97577C6");
    orgService.Execute(new ExecuteWorkflowRequest { WorkflowId = wfId, EntityId = preEntity.Id });

    However, I'm getting the following error:

    System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: System.Runtime.Serialization.SerializationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8C49048F (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault).

    I tried to use the CRM Diag tool to get a trace with more info but I didn't find any additional meaningful info around this exception. Any idea what might be causing this issue or how to debug?

    Tuesday, June 10, 2014 10:12 PM

All replies