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
mohan s 37mohan s 37 

cannot reference converted lead exception

     I am getting the cannot reference converted lead exception in my class. I have a Matched Account lookup field on lead object. When i select the converted lead account for Matched Account on lead object then i try to convert this lead, where i am getting the above exception. Is this salesforce standard behaviour? Can we refer the converted lead account for new lead?

Mohan s
NagendraNagendra (Salesforce Developers) 
Hi Mohan,

Sorry for this issue you are facing.

Once a Lead is converted it can not be modified via the UI, DataLoader or APEX. However, SFDC Help has a workaround that is documented here

Salesforce introduced a fix to this with Spring 16.
Here are 2 quite helpful links:

Data Loader updates to converted leads cause "ERROR: insufficient access rights on object id"

How can I update Lead fields on converted Leads?
In short: You can update converted lead but it will have to be done via dataloader.

Hope this helps.

Kindly mark this as solved if the reply was helpful.

mohan s 37mohan s 37
Hi Nagendra,
                     Thanks for your help. I am using the account which has been converted from lead. I am not using the lead. Don't we refer converted account on lead?