Just using the standard BC functionality to add a file.

[quote user="Tessa Deenik"]
Since 20.5 was released, we are now receiving an error message when adding attachments to Email Messages in BC. The changes to the Email Message record cannot be saved because some information on the page is not up-to-date. Close the page, reopen it, and try again.
Identification fields and values:
Id='{CBF98F49-B600-4401-9DE2-5443F02952DF}'
Internal session ID:
80f32052-4bc7-4790-890b-6c5d4bf86ebc
Application Insights session ID:
df730af7-300b-45ac-b833-416512dd0a76
Client activity id:
d151cf01-0049-4275-93d8-f9c4ee261256
Time stamp on error:
2022-09-21T23:03:11.5693755Z
AL call stack:
"Email Message Impl."(CodeUnit 8905).Modify line 6 - System Application by Microsoft
"Email Message Impl."(CodeUnit 8905).InsertAttachment line 9 - System Application by Microsoft
"Email Message Impl."(CodeUnit 8905).AddAttachmentInternal line 6 - System Application by Microsoft
"Email Editor"(CodeUnit 8906).UploadAttachment line 12 - System Application by Microsoft
"Email Attachments"(Page 8889)."Upload - OnAction"(Trigger) line 4 - System Application by Microsoft
"Email Editor"(CodeUnit 8906).Open line 15 - System Application by Microsoft
"Email Impl"(CodeUnit 8900).OpenInEditor line 24 - System Application by Microsoft
Email(CodeUnit 8901).OpenInEditorModally line 2 - System Application by Microsoft
"Mail Management"(CodeUnit 9520).SendViaEmailModule line 45 - Base Application by Microsoft
"Mail Management"(CodeUnit 9520).DoSend line 5 - Base Application by Microsoft
"Mail Management"(CodeUnit 9520).Send line 16 - Base Application by Microsoft
"Mail Management"(CodeUnit 9520).SendMailOrDownload line 7 - Base Application by Microsoft
"Email Item"(Table 9500).Send line 5 - Base Application by Microsoft
"Document-Mailing"(CodeUnit 260).EmailFileInternal line 54 - Base Application by Microsoft
"Document-Mailing"(CodeUnit 260).EmailFile line 7 - Base Application by Microsoft
"Report Selections"(Table 77).SendEmailDirectly line 100 - Base Application by Microsoft
"Report Selections"(Table 77).SendEmailToCustDirectly line 27 - Base Application by Microsoft
"Report Selections"(Table 77).SendEmailToCust line 36 - Base Application by Microsoft
"Document Sending Profile"(Table 60).SendToEMail line 27 - Base Application by Microsoft
"Document Sending Profile"(Table 60).TrySendToEMailGroupedMultipleSelection line 40 - Base Application by Microsoft
"Document Sending Profile"(Table 60).TrySendToEMail line 17 - Base Application by Microsoft
"Sales Invoice Header"(Table 112).EmailRecords line 13 - Base Application by Microsoft
"Posted Sales Invoice"(Page 132)."Email - OnAction"(Trigger) line 4 - Base Application by Microsoft
[/quote]
[quote user="Tessa Deenik"]
Since 20.5 was released, we are now receiving an error message when adding attachments to Email Messages in BC. The changes to the Email Message record cannot be saved because some information on the page is not up-to-date. Close the page, reopen it, and try again.
Identification fields and values:
Id='{CBF98F49-B600-4401-9DE2-5443F02952DF}'
Internal session ID:
80f32052-4bc7-4790-890b-6c5d4bf86ebc
Application Insights session ID:
df730af7-300b-45ac-b833-416512dd0a76
Client activity id:
d151cf01-0049-4275-93d8-f9c4ee261256
Time stamp on error:
2022-09-21T23:03:11.5693755Z
AL call stack:
"Email Message Impl."(CodeUnit 8905).Modify line 6 - System Application by Microsoft
"Email Message Impl."(CodeUnit 8905).InsertAttachment line 9 - System Application by Microsoft
"Email Message Impl."(CodeUnit 8905).AddAttachmentInternal line 6 - System Application by Microsoft
"Email Editor"(CodeUnit 8906).UploadAttachment line 12 - System Application by Microsoft
"Email Attachments"(Page 8889)."Upload - OnAction"(Trigger) line 4 - System Application by Microsoft
"Email Editor"(CodeUnit 8906).Open line 15 - System Application by Microsoft
"Email Impl"(CodeUnit 8900).OpenInEditor line 24 - System Application by Microsoft
Email(CodeUnit 8901).OpenInEditorModally line 2 - System Application by Microsoft
"Mail Management"(CodeUnit 9520).SendViaEmailModule line 45 - Base Application by Microsoft
"Mail Management"(CodeUnit 9520).DoSend line 5 - Base Application by Microsoft
"Mail Management"(CodeUnit 9520).Send line 16 - Base Application by Microsoft
"Mail Management"(CodeUnit 9520).SendMailOrDownload line 7 - Base Application by Microsoft
"Email Item"(Table 9500).Send line 5 - Base Application by Microsoft
"Document-Mailing"(CodeUnit 260).EmailFileInternal line 54 - Base Application by Microsoft
"Document-Mailing"(CodeUnit 260).EmailFile line 7 - Base Application by Microsoft
"Report Selections"(Table 77).SendEmailDirectly line 100 - Base Application by Microsoft
"Report Selections"(Table 77).SendEmailToCustDirectly line 27 - Base Application by Microsoft
"Report Selections"(Table 77).SendEmailToCust line 36 - Base Application by Microsoft
"Document Sending Profile"(Table 60).SendToEMail line 27 - Base Application by Microsoft
"Document Sending Profile"(Table 60).TrySendToEMailGroupedMultipleSelection line 40 - Base Application by Microsoft
"Document Sending Profile"(Table 60).TrySendToEMail line 17 - Base Application by Microsoft
"Sales Invoice Header"(Table 112).EmailRecords line 13 - Base Application by Microsoft
"Posted Sales Invoice"(Page 132)."Email - OnAction"(Trigger) line 4 - Base Application by Microsoft
[/quote]