Support Article
Email sent without the attached PDF
SA-85369
Summary
After generating a PDF using the Create PDF smartshape, the notification is sent through the Task assignment with the generated PDF as an attachment. However, the email is sent without the attached PDF.
Error Messages
Not Applicable
Steps to Reproduce
- After a case is triggered in the first stage of the first flow, immediately set the PDF generation as the first step
- Invoke the assignment with a notification.
- Add the generated PDF as an attachment in this email. The PDF is generated and attached to the work object, but is not sent through the email.
Root Cause
A defect in Pegasystems’ code or rules.
By default, none of the utilities or smartshapes commit the transaction. They transact in the deferred Save mode. Therefore, the attachments that are attached by the Create PDF smartshape are not rendered by the Send Email shape.
Resolution
Perform the following local-change:
Send the emails in batch mode.
Invoke the Send Email logic in the Batch mode instead of the Sequential mode.
Published August 15, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.