Skip to main content

KI-41

Enhanced Record Edit 'Salesforce System Error'

Key/Summary

KI-41 Enhanced Record Edit 'Salesforce System Error'

Status

Done

Created

10/26/2020

Updated

08/31/2022

Description

The 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 Capabilities

None

Affected Apps

Medical Information Cloud - Lightning

Affects Versions

V8, V9, MIC V10, MIC V11

Fix Version

V10

Steps to Reproduce

The 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.

Workaround

Workarounds 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.