function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
h.chopra1.394820340094543E12h.chopra1.394820340094543E12 

91% coverage but not able to deploy in production? URGENT

Hello! I have a trigger and a test method to convert lead. The coverage of the test method is 91%. I am deploying both the test method and the trigger. But its is showing me the error:
Failure Message: "System.DmlException: ConvertLead failed. First exception on row 0; first error: INVALID_STATUS, invalid convertedStatus: Non Disclosure Received: []", Failure Stack Trace: "Class.Test_accountsource.testaccountsource: line 18, column 1"

I have even chacked that the converted checkbox under leads is true for NonDisclosure but still this error is not resolved. Please help!
SamReadySamReady
Check the spelling on the values for convertedStatus. It looks like you might be setting it to something that is not a possible value.