Loading

Error 'Your attempt to delete record name could not be completed because it is associated with the following leads'

Publiceringsdatum: Oct 8, 2026
Beskrivning

When a system administrator tries to delete a Contact, Salesforce may display the following error message:

"Your attempt to delete [record name] could not be completed because it is associated with the following leads. If the following table is empty, it's because you don't have access to the records restricting the delete."

The message is followed by an empty table.

A system administrator has access to all Lead records except converted leads. The issue is therefore caused by a custom lookup relationship from Leads to Contacts that is set so that when you pick Contact XYZ in that field on a Lead, Contact XYZ cannot be deleted.

Attempts to delete the contact return the same error message, but the table is populated with the lead. The exception is a converted lead. Access to converted leads is limited, so a converted lead does not appear in the table.

Lösning

This article explains how to delete a Contact that is blocked by a custom Lead lookup field. To delete the Contact, remove the converted leads that reference it or clear the lookup value, and change the lookup option to "Clear the value of this field".

Fix the Error in Salesforce Classic

  1. Delete the converted lead. This needs Data Loader, the API, or the Mass Delete function.
  2. Change the lookup to a null value (or something else, as desired). This requires either the API or Data Loader.
  3. Go to Setup | Customize | Leads | Fields | Lead Custom Fields & Relationships.
  4. Edit the Contact lookup field.
  5. Under Lookup options, select Clear the value of this field. You can't choose this option if you make this field required.

Fix the Error in Lightning Experience

  1. Click Setup.
  2. Under Platform Tools, click the drop-down "Object and Fields".
  3. Go to Object Manager | Lead | Fields and Relationships.
  4. Click the Contact custom lookup field.
  5. Edit the field.
  6. Under Lookup options, select Clear the value of this field. You can't choose this option if you make this field required.
  7. Delete the Contact, then change the option back to "Don't Allow Deletion" if desired. This option does not allow the lookup record to be deleted if you have dependencies built on the lookup relationship, such as a workflow rule.
Knowledge-artikelnummer

000382752

 
Laddar
Salesforce Help | Article