Skip to main content

KI-73

[Lightning Web Security] Error occurs when loading records that use the Enhanced Record edit w/Save Check or the HELPER: Workspace API Helper component

Key/Summary

KI-73 [Lightning Web Security] Error occurs when loading records that use the Enhanced Record edit w/Save Check or the HELPER: Workspace API Helper component

Status

Done/Canceled

Created

02/04/2022

Updated

09/01/2022

Description

When opening a record that uses either the MIC - Enhanced Record edit w/Save Check (MED_EnhancedRecordEdit) or the MIC - HELPER: Workspace API Helper (MED_WorkspaceAPIProxy) component, an error occurs and the record does not load. For this error to occur, Lightning Web Security must be enabled in your environment.

Impacted Capabilities

Inquiry Management

Affected Apps

Medical Information Cloud - Lightning

Affects Versions

V9, MIC V10, MIC V11

Fix Version

Steps to Reproduce

  1. Open the Interaction record page in the Lighting App Builder.

  2. Verify that the MIC - HELPER: Workspace API Helper (MED_WorkspaceAPIProxy) is on the page. If it is not, add the component to the page, and save the change. For more information, visit https://help.salesforce.com/s/articleView?id=sf.lightning_app_builder_customize_lex_pages.htm&type=5.

  3. In the Quick Find box in Setup, search for and select [Session Settings].

  4. In the Lightning Web Security section, check the [Use Lightning Web Security for Lightning web components] checkbox field, and then click [Save].

  5. Navigate to an Interaction record. An error occurs and the record does not load.

Workaround

Workaround options include:

  • Remove the MIC - Enhanced Record edit w/Save Check (MED_EnhancedRecordEdit) and MIC - HELPER: Workspace API Helper (MED_WorkspaceAPIProxy) components from ALL record pages. For more information, visit https://help.salesforce.com/s/articleView?id=sf.lightning_app_builder_customize_lex_pages.htm.

  • Disable Lightning Web Security. To disable it:

    1. In the Quick Find box in Setup, search for and select [Session Settings].

    2. In the Lightning Web Security section, uncheck the [Use Lightning Web Security for Lightning web components] checkbox field.

    3. Click [Save].