Loading

Error 'INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY' while creating Case or Lead records

Дата публикации: Jun 16, 2026
Описание

When creating a Case or Lead record in Salesforce via the API or Apex, you may encounter the error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY. This error typically occurs when the running user does not have access to the email template folder referenced by a Case or Lead Assignment Rule.


Assignment Rules in Salesforce automatically assign newly created records to specific users or queues based on predefined criteria. When these rules are configured to send an email notification, they reference an email template stored in a folder. If the running user does not have permission to access that folder, Salesforce raises this error and the record creation fails.

Решение

To resolve this error, grant the required access level to the user for the folder in which the email template is stored.

 

Granting Access to Classic Email Templates

  1. Go to Setup | Administer | Communication Templates | Classic Email Templates.
  2. Beside the custom folder, click Edit.
  3. Set the desired level of access (by Role, Public Groups, etc.).
  4. Save.

 

Granting Access to Lightning Experience Email Templates

  1. From the App Launcher, open Email Templates.
  2. Select the template folder and click Share from the dropdown.
  3. Set the desired level of access.
  4. Save.
Номер статьи базы знаний

000387180

 
Загрузка
Salesforce Help | Article