Troubleshooting.
All posts.
INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY: The Error Names the Wrong Record
The record you are saving is not the problem. It is the one you are pointing at. How to find the real record and why granting Modify All is the wrong fix.
UNABLE_TO_LOCK_ROW: The Error That Is Really About Your Data
Row lock errors surface in code but are usually caused by data shape. Why retrying makes it worse, and how skew turns a working job into a failing one.
System.LimitException: Too many SOQL queries: 101
The limit is per transaction, not per class, so bulkified code still fails when it is fifth in a trigger chain. How to find the real cause and fix it.
Large Data Volumes: When a Query Stops Being Selective
Selectivity is a threshold, not a property. A query written when an object held 50,000 records fails at two million, with the same filter and no code change.
Fixing 'Could Not Infer a Metadata Type' in the Salesforce CLI
The Salesforce CLI error 'Could not infer a metadata type' has one message and several causes. A decision tree to find which one you hit, and the fix for each.