Skip to main content

KI-74

Key/SummaryKI-74 [Lightning Web Security] Files fail to upload to Request recordsStatusDone/Canceled
Created02/04/2022Updated09/01/2022
DescriptionWhen 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 CapabilitiesInquiry ManagementAffected AppsMedical Information Cloud - Lightning
Affects VersionsV9, MIC V10, MIC V11Fix Version
Steps to Reproduce1. 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.
WorkaroundDisable 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].