QUESTION:
I am getting the following error when attempting to update a Contact in Salesforce. How can I resolve?
- Error: CRMfusionDBR101.DB_Contact_BIUD_AIUD: System.LimitException: Apex heap size too large: 10579679
ANSWER:
This error can occur when a scenario finds an extremely high number of duplicates (i.e. thousands) to the record being inserted/updated due to either a very loose scenario and/or when there are numerous records with the same data in the matching field. For example, if there is a scenario that matches just on email and a generic placeholder for email address populated on a significant number of records (i.e. noemail@noemail.com). To resolve this error either tighten up the matching rules and/or add filters to the scenario to filter out the "generic" placeholder fields. Other common placeholders that are seen in the Company field on Leads and/or Last name fields on Leads or Contacts is "not supplied" or "unknown".