Support Article
Declare expression pyStepPageReference shows error during Save
SA-26191
Summary
The Declare Expression pyStepPageReference produces an error message during an attempt to save the rule.
Error Messages
"The expression ( right hand side ) :
Property @baseclass.pxGetStepPageReference() is undefined.
Invalid expression or reference: error Final Expression .pxGetStepPageReference() (ClipboardPropertyCollection) can't be converted to the desired type (text) "
Steps to Reproduce
- Open the Declare Expression pyStepPageReference.
- Edit the rule and click Save.
Root Cause
In Pega 7.1.9 and Pega 7.2, the Expression builder was modified, in such a way that the Declare Expression pyStepPageReference cannot reference the Utility Function @pxGetStepPageReference().
Resolution
Instead of using ".pxGetStepPageReference()", use "@Utilities.pxGetStepPageReference()".
Note: This issue is corrected in Pega 7.2.1.
Published August 17, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.