1

Closed

Error When Workflow Executes Qualifying Lead

description

I get the following error on workflow failure:
 
Unhandled Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: An error occurred in the CRM2011WorkflowUtilities.QualifyLead plug-in.
at CRM2011WorkflowUtilities.Helpers.Throw(String message, Exception innerException)
at CRM2011WorkflowUtilities.QualifyLead.Execute(CodeActivityContext executionContext)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Inner Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An unexpected error occurred.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>An unexpected error occurred.</Message>
<Timestamp>2012-04-16T20:20:05.1054687Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>System.NullReferenceException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #847F6CD7</Message>
<Timestamp>2012-04-16T20:20:05.1054687Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</OrganizationServiceFault>
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.ExecuteCore(OrganizationRequest request)
at CRM2011WorkflowUtilities.QualifyLead.Execute(CodeActivityContext executionContext)
Closed Jun 29, 2012 at 12:26 AM by GonzRuiz
When you qualify a record you MUST create either a contact/account or opportunity. You will get this error if you select to qualify the lead but you don't configure it to create any of the entities.

comments

GonzRuiz wrote May 1, 2012 at 10:36 AM

Hi, thanks for reporting. Could you please search in your traces for async service for the string "#847F6CD7" and provide the details? Thank you.

wrote Jun 29, 2012 at 12:26 AM

wrote Feb 14, 2013 at 8:01 PM

wrote May 16, 2013 at 9:55 AM