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 pyMessage rule not being resolved

SA-29672

Summary



When an "Edit Validate" Rule is called on a Property that is on an Embedded page of class, the failure validate Message text is not displayed.

Instead the ID of the Message text is displayed. When the same property is placed on a top level class, the validation failure message is correctly displayed. 


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a process flow that uses a Question smart shape (PegaSurvey).
  2.  Add a postProcessingActivity.
  3. Call a validation in the Activity.
  4. Make the validation fail by default.
  5. Use a pyMessage instead of a hard coded string in the validation.
  6. Run the process flow.


Root Cause



The primary page at the time of execution of the validation rule does not have the Edit validate Rule 'ValidationErrorMessage'.

If user create 'ValidationErrorMessage' in the the class of the embedded page, the message rule gets resolved and the actual message gets displayed. 
 

Resolution



Here’s the explanation for the reported behavior:

The solution is to create a message in the class of the embedded page.
 

Published November 8, 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