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

Error message is not retained on the screen(pyAttachContent )



The user has configured the OOTB 'pyAttachContent' Local action to add attachments for the work object.When user submits the screen without adding any attachment the error message at the harness level is not retaining. It is just blinking and disapperaing. The user can only see the error warning icon at the button level.

Error Messages

Not Applicable

Steps to Reproduce

  1. Login in to the application.
  2. Make a private edit of PegaSample-CustomerRequest.NewWork Flow and add pyAttachContent as the local action at the very first assignment.
  3. Launch local action Attach Files(s).
  4. Submit with out adding any attachments.
  5. Observe the error message at the top of harness. The error message will be disappeared after a blink.

Root Cause

In the ActionIframe, the formlevelerrors are hidden by default. Normally form level harness configuration will be there on Harness. But for actioniframe, there is no such configuration. as per design form level errors are not displayed and field level errors are only shown.


Perform the following local-change:

Add the below script in userworkform


$(function() {
if(window.frameElement && == "actionIFrame"){

Published March 29, 2017 - 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