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

Validation messages not stopping flow in modal dialog



A flow is configured to run in a modal dialog. After failing a validation, the flow does not stop and proceeds to the next step.

Error Messages

Not Applicable

Steps to Reproduce

  1. Log in to the Sales Automation application.
  2. Open an Opportunity and click the Next Stage.
  3. Fail a validation.
  4. Submit Next Stage. Error message does not display and flow does not stop.

Root Cause

This issue is specific to the Sales Automation activity. In the crmPreChangeStage activity, the Obj-Refresh-And-Lock step opens the work object from the database. Thus, the pyTemporaryObject property is cleared.
This property is set when the modal dialog is launched. Pega uses this property to determine if the acquireWorkObject activity to must be invoked or not.
Since this property is no longer present in the pzSubmitAssignment activity, acquireWorkObject is invoked. The pzCheckLockingMode activity opens the work object from the database. This clears the error messages set previously.


Perform the following local-change in the crmPreChangeStage activity:

Add a Property-Set step after the Obj-Refresh-And-Lock step to set .pyTemporaryObject property to true.


Published January 20, 2019 - Updated December 2, 2021

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