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

pyChangePassword harness does not load



The requirement is to show Change password screen if any operator profile password changes by third or IT security person.

Added a step in the application activity to "pyChangePassword" into "true".  This should kick off "pzShowCPHarness activity" or "pyChangePassword Harness".

This works fine first time, if the same operator profile is updated one more time, the pyChangePassword section is not loaded.


Error Messages

Not applicable

Steps to Reproduce

  1. Add a Property-Set in OnBefore Display activity with the following pre-conditions 1) @(Pega-RULES:String).equalsIgnoreCase(.pyPwdOld, .pyPwdCurrent) 2) @(Pega-RULES:String).equalsIgnoreCase(.pyUserIdentifier, .pxUpdateOperator).
  2. Change user password as an Admin.
  3. Log in with user - user changes their own password per prompt.
  4. Change user password again as an Admin.
  5. User logs in again.

Root Cause

An issue in the custom application code or rule : The second condition was not firing correctly.


Firstly, instead of using the OnBeforeDisplay activity use the operator Pre-Save activity (defined in Data-Admin-Operator-ID).

Secondly use the following precondition:

@(Pega-RULES:String).equalsIgnoreCase(.pyUserIdentifier, pxRequestor.pyUserIdentifier) 
In place of
@(Pega-RULES:String).equalsIgnoreCase(.pyUserIdentifier, .pxUpdateOperator)

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