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
BlobBlob 

INSUFFICIENT_ACCESS_OR_READONLY

Anybody know why I would get the error "INSUFFICIENT_ACCESS_OR_READONLY"?

1. User U created the id A and other ids successfully within salesforce.com via the API
2. User U removed the id A and other ids successfully within salesforce.com via the UI
3. User U attempts to delete the id A and other ids within salesforce.com via the API but fails on the id A because the error mentioned above happens. The other ids are successfully deleted.

User U is an administrator.

The id A is an instance of OpportunityLineItem.

The whole recycle bin (user and company) has been emptied and the error is still happening.

I have heard that deleting a PricebookEntry would also delete the OpportunityLineItem, but that still does not explain this error message when attempting to delete an id that no longer exist. The error message implies that the id still exist.

I would expect a different message if deleting an non-existing id was an error.

This is with Sfdc API 8.0.
benjasikbenjasik
sounds like something specific to your org.  I'd recommend you log a case, we may need login access to troubleshoot