Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

How to Debug CRM 2013 Plugin

Posted on by 65

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)

  • Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    RE: How to Debug CRM 2013 Plugin

    Yes,

    Steps are same for both online and offline.

    Thanks,

    Pradeep

  • Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: How to Debug CRM 2013 Plugin

    procedure is the same also for your CRM version

  • jasri Profile Picture
    jasri 65 on at
    RE: How to Debug CRM 2013 Plugin

    Thank you , but Iam Using CRM 2013

  • Suggested answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    RE: How to Debug CRM 2013 Plugin

    Hi,

    Please refer below link to debug the Plugin:

    https://vishalgrade.com/2016/12/06/how-to-debug-a-plugin-in-dynamics-365-online-using-plugin-profiler/

    Thanks,

    Pradeep.

    Please mark this as VERIFIED if it helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans