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

Failed to reference single page property in RUF method

SA-27438

Summary



Referencing a single-page property in a Rule-Utility-Function parameter of Clipboard page type generated Java, which created a clipboard property at run time, resulting in a classcast exception. When the primary page is a single page, like pyWorkPage method, it works fine. When the primary page is like pyWorkPage.ABC, system throws Classcast exception on runtime and does not pick the activity.

Error Messages



** Java Exception: java.lang.ClassCastException: com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl incompatible with
com.pega.pegarules.pub.clipboard.ClipboardPage

Steps to Reproduce



Use @Utilities.pxExecuteAnActivity (Primary,"ActivityName") function as an expression in a rule.

Root Cause



All type conversions for the broken expression are skipped because VFORM_PEGA_PAGE_REFERENCE (in one of the Java classes) returns false from isValueLikeOrParam().

Resolution



Apply HFix-29236.

Published September 14, 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