EPM - Unable/Corrupt PDF attachments via Outlook
Symptom
When trying to open a pdf from an Outlook email attachment the message appears, "The operation failed"
Then, a message may appear saying the attachments of the message have been changed.
You may also see errors when then trying to open the file in an external app such as Acrobat reader
in vf_agent_srv.trace logs, the following error may be present:
2023.05.03 16:44:13 PID:7660 TID:22748 CvfFileHash::GetHashStringUsing: ERROR: _OpenFile(C:\Users\username\AppData\Local\Microsoft\Windows\INetCache\Content.Outlook\D1TMUUJW\file.pdf) failed. LastError=32
Environment
23.4 EPM Windows Agent EPM is installed
Cause
After installing KB5023773 or later updates, you might have intermittent issues saving, or copying, or attaching files using 32-bit apps which are large address aware and using the CopyFile API. Microsoft Office apps such as Microsoft Word, Microsoft Excel, Microsoft Outlook are only affected when using 32-bit versions and you might receive the error, "Document not saved." Apps are not affected by this issue if they are 64-bit or 32-bit and NOT large address aware.
Resolution
Microsoft has released the following update which addresses the CopyFile API issue.
June 13, 2023—KB5027215 (OS Builds 19044.3086 and 19045.3086)
https://support.microsoft.com/en-us/topic/june-13-2023-kb5027215-os-builds-19044-3086-and-19045-3086-079f9f02-fe49-4b25-99a6-c02a16b1f208
This security update includes quality improvements that were a part of update KB5026435 (released May 23, 2023). When you install this KB:
-
This update addresses a known issue that affects 32-bit apps that are large address aware and use the CopyFile API. You might have issues when you save, copy, or attach files. If you use some commercial or enterprise security software that uses extended file attributes, this issue will likely affect you. For Microsoft Office apps, this issue only affects the 32-bit versions. You might receive the error, "Document not saved."