Skip to main content

KI-160

Attaching a new file to an email or a closed record fails​

Created date10/26/2026Updated date10/28/2026
StatusIn ProgressRelated work itemsMIC-5312, MIC-5347
DescriptionAttaching a new file to an email or to a closed record fails with this error:
Cannot modify or delete an Attachment when record is closed.

This happens when a user:
  • Sends an email with an attachment from an Interaction before Salesforce saves the email as a draft. Salesforce saves a new email only after the Subject or Body is edited. If the user uploads an attachment and clicks Send without editing either field, the email is considered unsaved as Saved doesn't appear next to the Send button.
  • Sends an email with an attachment from an Interaction in an org where Email Drafts is turned off.
  • Generates a Request Snapshot on a closed Request. An InternalError message appears, and the PDF isn't attached to the Request.
  • Attaches a file from their own library (Add Files > Owned by Me) to a closed record.
Root CauseMedical Information Cloud record locking prevents changes to files on closed or sent records. Some ways of attaching a new file make Salesforce create or update the file after it's linked to a locked record, so the lock blocks the change:
  • Unsaved email: An email that hasn't been saved has no status, and record locking treats an email with no status as locked.
  • Email Drafts turned off: The email is saved as sent, and therefore locked, before its attachment is saved.
  • Files from a user's library: When a file from a user's library is first attached to a record, Salesforce updates the file to share it, and the lock blocks that update. Request Snapshot attaches its generated PDF this way.
Affects version(s)Spring '25 (V16) and laterImpacted capabilitiesInquiry Management
Steps to reproduceEmail
  1. Open an Interaction.
  2. Open a new email in the email composer.
  3. Upload a file as an attachment.
  4. Click Send without editing the Subject or Body.
  5. Observe that the email isn't sent, and the error appears.


Request Snapshot
  1. Open a closed Request.
  2. Click Request Snapshot.
  3. An InternalError message appears, and the PDF isn't attached to the Request.
WorkaroundEmail, with Email Drafts turned on: Before you send the email, edit the Body, then click or tab out of it. Wait until Saved appears next to Send, then click Send.

Email, with Email Drafts turned off: Ask your Salesforce admin to turn on Email Drafts (Setup → Support Settings → Edit → Check Enable Email Drafts), then follow the workaround above.

Request Snapshot and other files on closed records: Contact Mavens Support for a temporary configuration change.
Fix versionSpring '27 (V20)Resolution notesAfter the fix, users can attach new files to closed records. Files already on a closed record stay locked.