Support Article
PDF document in attachments fail to load
SA-88393
Summary
Attachments are received through an inbound email and are attached to a work object. On opening the attachment (PDF or Word), the Word or PDF file is blank and an error message displays.
Error Messages
Failed to Load PDF Document
Steps to Reproduce
- Configure an Email Account.
- Configure an Email Listener to read an email, Service Package, and Email Service.
- Configure an Email Service activity to attach an email attachment to a work object.
- Send an email to an email account with an attachment. The Listener processes the email and attaches the attachment to the work object.
Root Cause
While attaching the file, incorrect values were passed for ContentDisposition and MimeType parameters.
Resolution
Perform the following local-change:
Pass the ContentDisposition as pyAttachmentPage.pyAttachContentDisposition(<current>) and MimeType as pyAttachmentPage.pyAttachMimeType(<current>).
Published March 19, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.