You need to sign in to do that
Don't have an account?
85% code coverage, but fails to deploy
Hi,
I'm trying to convert use VWFConvertLead plugin. It has 85% pass rate, but I cannot successfully push this to production
Here's the error I'm receiving
VWFConvertLead.basicTest() | Class | 133 | Failure Message: "System.DmlException: ConvertLead failed. First exception on row 0; first error: INVALID_STATUS, invalid convertedStatus: Qualified: []", Failure Stack Trace: "Class.VWFConvertLead.convertLead: line 133, column 1 Class.VWFConvertLead.invoke: line 22, column 1 Class.VWFConvertLead.basicTest: line 171, column 1" | |
VWFConvertLead.basicTestwithAccount() | Class | 133 | Failure Message: "System.DmlException: ConvertLead failed. First exception on row 0; first error: INVALID_STATUS, invalid convertedStatus: Qualified: []", Failure Stack Trace: "Class.VWFConvertLead.convertLead: line 133, column 1 Class.VWFConvertLead.invoke: line 22, column 1 Class.VWFConvertLead.basicTestwithAccount: line 205, ... | |
VWFConvertLead.basicTestwithAccounts() | Class | 133 | Failure Message: "System.DmlException: ConvertLead failed. First exception on row 0; first error: INVALID_STATUS, invalid convertedStatus: Qualified: []", Failure Stack Trace: "Class.VWFConvertLead.convertLead: line 133, column 1 Class.VWFConvertLead.invoke: line 22, column 1 Class.VWFConvertLead.basicTestwithAccounts: line 241,... |
The full code is at http://docs.database.com/dbcom/en-us/db_apex/apex_process_plugin_example_lead_convert.htm?version=182.0
Does anybody have any idea what I'm missing? Thank you in advance
Hi Daniel,
Check the Converted check box for the lead status and assign that value to the Lead Status.
Setup-->Customize--->Lead--->Fields--->check for Lead Status field--->check for converted checkbox checked for what value--->assign that value to the lead status.
Hi Vinit_Kumar,
I checked the lead status value I'm working with, which is 'Qualified'
I went to Leads Fields and found that value 'Qualifed' is checked under Converted.
How can I assign this value to Lead Status?
Daniel
Daniel,
You should use convertedStatus in your code.Please go through the below link for the same:-
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_convertlead.htm