Hi
I use the following code to Qualify a lead :
var qualifyleadReq = new QualifyLeadRequest { LeadId = new EntityReference(laed.LogicalName, laed.Id), Status = new OptionSetValue((3)), CreateOpportunity = true };
When I dont set "CreateOpportunity" it works and qualifies the lead, but when I set as true I got the foloowing error:
Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request) at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request) at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Execute(OrganizationRequest request) at UpdatePaymentService.Service1.QulifyLead(EntityReference laed, OrganizationServiceProxy _serviceproxy) in D:\2016 Dev\crm\mobint net\CreateUniqueIdForCustomer\UpdatePaymentService\Service1.cs:line 124 at UpdatePaymentService.Service1.OnTimedEvent(Object sender, ElapsedEventArgs e) in D:\2016 Dev\crm\mobint net\CreateUniqueIdForCustomer\UpdatePaymentService\Service1.cs:line 86 An unexpected error occurred. ,
I disabled all plugins and workflows related to opportunity but still get the error.