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.
Step 1: Navigate to Files Settings
Step 2: Enable the Required Settings
Click Edit and select the following checkboxes:
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.
000382054

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.