Hi everybody
please support in this issue Suffering since one week , I have custom workflow runnig to create sales order after closing Quote .
it is giving error, also I am not able to debug the plugin.
please advise in CRM Plugin debuging in VStdio, tracing tool didn't help .
Plugin Step Error:
Web Service Plug-in failed in SdkMessageProcessingStepId: {33EBC838-F400-EC11-BF21-005056B4116D}; EntityName: salesorder; Stage: 40; MessageName: Create; AssemblyName: ContractRAFAL.ContractRAFAL_Plugins.PostContractRAFALCreate, ContractRAFAL.ContractRAFAL_Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=262b8a380bc9d251; ClassName: ContractRAFAL.ContractRAFAL_Plugins.PostContractRAFALCreate; Exception: Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at ContractRAFAL.ContractRAFAL_Plugins.PostContractRAFALCreate.ExecutePostContractRAFALCreate(LocalPluginContext localContext)
at ContractRAFAL.ContractRAFAL_Plugins.Plugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
Workflow step error to create SalesOrder.
Web Service Plug-in failed in SdkMessageProcessingStepId: {4FCABB1B-EA3E-DB11-86A7-000A3A5473E8}; EntityName: salesorder; Stage: 30; MessageName: Create; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
Inner Exception: Microsoft.Crm.CrmException: The given key was not present in the dictionary.
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.ExtensiblePlatformMessageDispatcher.Execute(PipelineExecutionContext pluginContext)
at Microsoft.Crm.Extensibility.ExtensiblePlatformMessageDispatcher.CreateWithInvocationSource(BusinessEntity entity, Int32 invocationSource, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Create(IBusinessEntity entity, ExecutionContext context)
at Microsoft.Crm.Sales.ObjectModel.QOIService.Create(IBusinessEntity qoi, ExecutionContext context, Boolean calculatePrice)
Inner Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at ContractRAFAL.ContractRAFAL_Plugins.PostContractRAFALCreate.ExecutePostContractRAFALCreate(LocalPluginContext localContext)
at ContractRAFAL.ContractRAFAL_Plugins.Plugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)