Hi
I have customized lead qualifying process, It's working fine if we create lead manually and qualify it. We have clone functionality on Lead when I try to qualify the cloned lead, getting plugin error.
Here is the error message -
"The Web Service plug-in failed in OrganizationId: e0e3acbe-da51-41b7-b442-a6e0195da364; SdkMessageProcessingStepId: fc4d1c33-74d4-4ae9-ba07-6079a900ec3f; EntityName: lead; Stage: 30; MessageName: QualifyLead; 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: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
at Microsoft.Crm.ObjectModel.BusinessProcessFlowServiceInternalHandler`1.NavigateToNextEntity(Guid currentEntityId, String currentEntityLogicalName, Guid nextEntityId, String nextEntityLogicalName, Guid processId, ExecutionContext context)
at Microsoft.Crm.Common.ObjectModel.LeadService.SetGlobalActiveStage(BusinessEntityMoniker leadId, ExecutionContext context, Guid leadProcessId, BusinessEntity targetOpportunity)
at Microsoft.Crm.Common.ObjectModel.LeadService.QualifyLead(BusinessEntityMoniker leadId, Boolean createAccount, Boolean createContact, Boolean createOpportunity, BusinessEntityMoniker opportunityCurrencyId, BusinessEntityMoniker opportunityCustomerId, BusinessEntityMoniker sourceCampaignId, Int32 statusCode, ExecutionContext context)."
Can you please assist me on this?
Thank you!!
Prem