How to resolve the salesforce limit-exceeded error?
I have piece of code for inserting case from back end -
I checked the logs - and the error is as below
System.DmlException: Insert failed. First exception on row 0; first error: LIMIT_EXCEEDED, limit exceeded: []
This error is only for one of the sandboxes and not in all sandboxes.
I checked the system overview - and no limit was exceeded. I also tried to research if we are hitting the email limit , but could not find it in the system
We got this issue - salesforce limit_exceeded today and the root cause for this is mentioned in the link below.
https://help.salesforce.com/s/articleView?id=000317857&type=1
When error messages say LIMIT_EXCEEDED, limit exceeded: [] with no more info, check your Omni Channel limits. Make sure it's less than the defined number. And proceed with given resolution steps to resolve this.
The exact error message here from Salesforce logs is :
Exceeded MAX_PENDING_SERVICE_ROUTINGS of 200000"""common.exception.LimitExceededException: Exceeded MAX_PENDING_SERVICE_ROUTINGS of 200000