Loading

Salesforce Experience Cloud: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY Error When Attaching Files to Community Cases

Veröffentlichungsdatum: May 30, 2026
Beschreibung

Customer Community Plus users in Salesforce Experience Cloud (formerly known as Salesforce Communities) may encounter the following error when attempting to attach any type of file to a case they created:

Error: Apex trigger AttachmentTrigger caused an unexpected exception, contact your administrator: TriggerName: execution of AfterInsert caused by: System.DmlException: Update failed. first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, TriggerName: execution of AfterUpdate caused by: System.QueryException: Insufficient access to <Object Name>.

This error can occur even when the Customer Community Plus user's profile has access to the referenced object. The root cause is typically a missing Files Settings configuration in the org.

Lösung

Step 1: Navigate to Files Settings

  • In Lightning Experience: Setup → Feature Settings → Salesforce Files → General Settings
  • In Salesforce Classic: Setup → Customize → Salesforce Files → Settings → General Settings

Step 2: Enable the Required Settings
Click Edit and select the following checkboxes:

  1. Files uploaded to the Attachments related list on records are uploaded as Salesforce Files, not as attachments
  2. Allow site guest users to upload files

Step 3: Save the Changes
Save the settings. Enabling these two permissions resolves the CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY error and allows Customer Community Plus users to attach files to their cases successfully.

Nummer des Knowledge-Artikels

000382054

 
Laden
Salesforce Help | Article