Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Configure an Email Account.
  2. Configure an Email Listener to read an email, Service Package, and Email Service.
  3. Configure an Email Service activity to attach an email attachment to a work object.
  4. 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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us