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

'Download' link fails in 'pyAttachFieldOptional' in screen flow



Download link in pyAttachFieldOptional section does not work in a Screen Flow.

A property (defined as Attachment field type) is used in a screen flow. Thumbnail displays correctly after uploading the image file. However, the Download link does not work. 

Error Messages

Not Applicable

Steps to Reproduce

  1. Create a Property (defined as Attachment field type).
  2. Use the property in a screen flow.
  3. Upload an image.
  4. Click the Download link.

Root Cause

The root cause of this problem is a defect in Pegasystems’ code/rules. 


This issue is resolved through the following local-change: 

The script that downloads the attachment needs 'pyWorkAttachmentHiddenFrame' section to be present in the harness. Include 'pyWorkAttachmentHiddenFrame' section in the harness or section for the download to work. This section is included out-of-the-box in Pega 7.1.9.

Published July 31, 2015 - 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