Skip to main content

KI-41

Key/SummaryKI-41 Enhanced Record Edit 'Salesforce System Error'StatusDone
Created10/26/2020Updated08/31/2022
DescriptionThe Enhanced Record Edit Component throws the same 'Salesforce System Error' in various scenarios. Three potential scenarios include: Scenario 1 - Soft deleted formula fields exist If an object has a formula field that is pending deletion and uses the Enhanced Record Edit component, the Enhanced Record Edit component throws a 'Salesforce System Error' when a user edits a record of that object. Salesforce has documented this known issue here. Scenario 2 - Formula field referencing custom metadata exists If an object has a formula field that references custom metadata and uses the Enhanced Record Edit component, the Enhanced Record Edit component throws a 'Salesforce System Error' when a user edits a record of that object. Salesforce has scheduled this known issue to be fixed in Winter '21 Patch 11.0. Find more information here. Scenario 3 - Formula field referencing protected custom label exists If an object has a formula field that references protected custom labels and uses the Enhanced Record Edit component, the Enhanced Record Edit component throws a 'Salesforce System Error' when a user edits a record of that object. Salesforce has documented this known issue here. In each scenario, the debug logs point to MED_EnhancedRRecordEditCtrl.getConditionalFields on the line with Formula.recalculateFormulas.
Impacted CapabilitiesNoneAffected AppsMedical Information Cloud - Lightning
Affects VersionsV8, V9, MIC V10, MIC V11Fix VersionV10
Steps to ReproduceThe steps to reproduce each scenario are listed below. Scenario 1 - Soft deleted formula field exists 1. Create a formula field on the Request object. 2. Create a Request record. 3. Soft delete the formula field. For instructions on how to soft delete a field, see this Salesforce article. 4. Edit the Request record. A 'Salesforce System Error' occurs. Scenario 2 - Formula field referencing custom metadata exists 1. On the Request object, create a formula field that reference custom metadata. 2. Create a Request record. 3. Edit the Request record. A 'Salesforce System Error' occurs. Scenario 3 - Formula field referencing protected custom label exists 1. On the Request object, create a formula field that references a protected custom label. 2. Create a Request record. 3. Edit the Request record. A 'Salesforce System Error' occurs.
WorkaroundWorkarounds to the various scenarios are listed below. Scenario 1 - Soft deleted formula field exists 1. Hard delete the formula field, which removes the deleted field and its data from your Salesforce instance. For instructions on how to soft delete a field, see this Salesforce article. Scenario 2 - Formula field referencing custom metadata exists 1. Remove the reference to the custom metadata from the formula field, or hard delete the formula field. Scenario 3 - Formula field referencing protected custom label exists 1. Remove the reference to the protected custom label from the formula field, or hard delete the formula field.