Skip to main content

KI-74

[Lightning Web Security] Files fail to upload to Request records

Key/Summary

KI-74 [Lightning Web Security] Files fail to upload to Request records

Status

Done/Canceled

Created

02/04/2022

Updated

09/01/2022

Description

When uploading a new file to a Request record via the MIC - Attach Request Documents (medAttachRequestDocuments) component, the file fails to upload due to this error: Required fields are missing: [MED_Request__c]. 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 Request record page in the Lighting App Builder.

  2. Verify that the MIC - Attach Request Documents (medAttachRequestDocuments) 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.

  6. Create an Interaction record and then a Request record.

  7. Use the MIC - Attach Request Documents component to upload a new file. An error occurs, and the file fails to upload.

Workaround

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