Loading

‘CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY’ on File Attach to Community Case

Дата публикации: Oct 13, 2022
Описание
Customer Community Plus users are getting the following error while attaching any type of file to the 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 is seen when after Customer Community Plus users profiles have access to the suggested object.
Решение

Based on the Communities User Licenses document, the following permissions must be enabled:

1. Navigate to Files Settings
In Salesforce Classic: Setup | Customize | Salesforce Files | Settings | General Settings
In Lightning Experience: Setup | Feature Settings | Salesforce Files | General Settings

2. Click Edit and select these checkboxes:
  • Files uploaded to the Attachments related list on records are uploaded as Salesforce Files, not as attachments 
  • Allow site guest users to upload files 
 
3. Save the changes.

Enabling these permissions resolves the issue.
Номер статьи базы знаний

000382054

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