LIMIT_EXCEEDED, limit exceeded: []
Wanted to post this to save someone the potential of many hours of research. A few months ago we started to receive an error of LIMIT_EXCEEDED, limit exceeded: [] in our logs. This was happening when an automated process was attempting to upgrade a profile on users.
All of our accounts are owned by a single user. Let's say 'Integration User.'
The process that was receiving the LIMIT_EXCEEDED, limit exceeded: [] error when assigning a role based profile to users.
There is a Salesforce limit that dictates one account owner cannot be associated to more than 50K role based users. The number of users associated to the owner user of 'Integration User' was well over the 50K limit.
This limit is a bit obscure so it took a while to figure this out. https://help.salesforce.com/s/articleView?id=sf.networks_person_accounts_limitation.htm&type=5
The solution was to upgrade the 'Integration User' to a power user.
To upgrade the owner user open Workbench.
The URL would be this:
/services/data/v58.0/sobjects/PersonAccountOwnerPowerUser
The payload would include the Owner Id that you need to upgrade.
{
"UserId": "005t0000003dFctAAE",
"PortalType":"CustomerPortal",
"DeveloperName" :" Power_User",
"MasterLabel": " Power_User"
}