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
AbAb 

Lead conversion | Errror | Unable to convert lead that is in use by workflow

Hello,

when i am trying to convert a lead, it is giving me a error called
"Unable to convert lead that is in use by workflow"
this error is displayed on the field "Lead status"

I follwed this below link, which is logic but i want to find in detail the information
https://help.salesforce.com/apex/HTViewSolution?urlname=Unable-to-convert-lead-that-is-in-use-by-workflow-1327109102982&language=en_US
 
Best Answer chosen by Ab
SandhyaSandhya (Salesforce Developers) 
Hi Sandrine,

After some research, I found below link.

Please refer that it may help you!

https://www.ringlead.com/fix-time-based-salesforce-workflow-errors-preventing-lead-conversion/
 
Hope this helps you!

Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
 
Thanks and Regards
Sandhya

 
 

All Answers

SandhyaSandhya (Salesforce Developers) 
Hi Sandrine,

After some research, I found below link.

Please refer that it may help you!

https://www.ringlead.com/fix-time-based-salesforce-workflow-errors-preventing-lead-conversion/
 
Hope this helps you!

Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
 
Thanks and Regards
Sandhya

 
 
This was selected as the best answer
SathyaCNSathyaCN
Hi,

I got the following errors while deploying/validating code in production.

Apex Test Failures 
Class NameMethod NameError MessageConvertLeadbasicTestwithSystem.DmlException: ConvertLead failed. First exception on row 0; first error: RECORD_IN_USE_BY_WORKFLOW, Unable to convert lead that is in use by workflow: [] 
Stack Trace: Class.ConvertLead.convertLead: line 170, column 1 Class.ConvertLead.invoke: line 73, column 1 Class.ConvertLead.basicTestwith: line 216, column 1

ConvertLeadbasicTestWithoutConvertedStatusSystem.DmlException: ConvertLead failed. First exception on row 0; first error: RECORD_IN_USE_BY_WORKFLOW, Unable to convert lead that is in use by workflow: [] 
Stack Trace: Class.ConvertLead.convertLead: line 170, column 1 Class.ConvertLead.invoke: line 73, column 1 Class.ConvertLead.basicTestWithoutConvertedStatus: line 242, column 1

ConvertLeadbasicTestwithAccountsSystem.DmlException: ConvertLead failed. First exception on row 0; first error: RECORD_IN_USE_BY_WORKFLOW, Unable to convert lead that is in use by workflow: [] 
Stack Trace: Class.ConvertLead.convertLead: line 170, column 1 Class.ConvertLead.invoke: line 73, column 1 Class.ConvertLead.basicTestwithAccounts: line 310, column 1

ConvertLeadbasicTestwithAccountSystem.DmlException: ConvertLead failed. First exception on row 0; first error: RECORD_IN_USE_BY_WORKFLOW, Unable to convert lead that is in use by workflow: [] 
Stack Trace: Class.ConvertLead.convertLead: line 170, column 1 Class.ConvertLead.invoke: line 73, column 1 Class.ConvertLead.basicTestwithAccount: line 275, column 1

testSendEmailFlowPluginbasicTestSystem.QueryException: List has more than 1 row for assignment to SObject 
Stack Trace: Class.testSendEmailFlowPlugin.basicTest: line 45, column 1

I referred the suggested link. This page gets re-directed to ringlead.com
https://www.ringlead.com/fix-time-based-salesforce-workflow-errors-preventing-lead-conversion/

Any help is appreciated.
The Real Scott MorrisonThe Real Scott Morrison
Down voted the accepted solution, broken link.