Support Article

Error pyMessage rule not being resolved



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. 


Here’s the explanation for the reported behavior:

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

Published October 27, 2016 - Updated November 8, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.