function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
satya vani 4satya vani 4 

Migrating Mass Delete button to lightning

We'd like to migrate the mass delete button from classic to lightning, for this we installed Mass Delete app from app exchange
https://appexchange.salesforce.com/listingDetail?listingId=a0N300000016YuDEAU
 
This automatically created visual force pages and we created a list view button and added to the search layout. When we tried using the button we get the below error
 
Delete failed. First exception on row 0 with id 50090000024K0O7AAK; first error: INSUFFICIENT_ACCESS_OR_READONLY, insufficient access rights on object id: []
Error is in expression '{!deleteRecords}' in page mass_delete_case: Class.MassDeleteExtension.deleteRecords: line 18, column 1
 
 
An unexpected error has occurred. Your development organization has been notified.
Raj VakatiRaj Vakati
Looks like this issue is because of the Sharing .. look like the objects you are trying to delete is having read only acccess