Governor limit errors

Governor limits cap what one transaction can consume, and exceeding one throws a System.LimitException that cannot be caught with try/catch. The whole transaction rolls back. The fix is always to use less of the...

ENTITY_IS_LOCKED

The record is locked, normally because it is pending in an approval process. Common causes How to fix

MALFORMED_ID

A value supplied as an ID is not a valid Salesforce ID for that field. Common causes How to fix

MIXED_DML_OPERATION

Setup objects and regular objects were modified in the same transaction. Setup objects include User, UserRole, Group, GroupMember, PermissionSet, PermissionSetAssignment and QueueSObject. Common causes How to fix

UNABLE_TO_LOCK_ROW

Salesforce could not get an exclusive lock on a record within about 10 seconds. The message reads unable to obtain exclusive access to this record. Common causes How to fix