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
Priyadarshini Manoharan 3Priyadarshini Manoharan 3 

Lead Conversion failing when Conversion is done by a user of a Profile other than System Admin and the Lead Owner is a Queue

When Lead Conversion is done by clicking the Convert button by another profile other than System Admin and if the Lead Owner is a Queue it fails with the below error
ConvertLead failed. First exception on row 0; first error: INVALID_CROSS_REFERENCE_KEY, invalid cross reference id: []
Error is in expression '{!convertLead}' in component <apex:commandButton> in page leadconvertpage: Class.leadConvertController.convertLead: line 156, column 1

An unexpected error has occurred. Your development organization has been notified.