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
CasselJCasselJ 

apex leadConvert always merges account in production

I have a vf page and apex controller that convert leads. 

It works wonderfully in the sandbox but it merges in production.
 

Any help is appreciated

AbhishekAbhishek (Salesforce Developers) 
CaseelJ,

Compare the debug the logs in both sandbox and production while doing the operation, then you will get to know what causes this behavior.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.