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

Email Attachment Taking unusually long time and failing sometime

SA-29263

Summary



Email attachment triggered by the email Listener is either taking unusually long time or failing to attach at all to the work object.

Error Messages



Not Applicable

Steps to Reproduce

  1. Send an email with an large attachment (e.g.: 13 MB) to email account
  2. Listener picks the email to process
  3. Enable DEBUG on EmailListener and you will see processing will take long time.

Root Cause



Default JavaMail used an IMAP feature called "partial fetch" which will allow you to download a small portion of the mail attachment at a time.  This feature will avoid retrieving big attachment and store them entirely in the heap but will lengthen the time to download the attachment.  Default fetch size is 16kb.

Resolution



Apply DSS Pega-IntSvcs email/fetchsize with value 1024000.

Published October 27, 2016 - Updated October 8, 2020

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