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

Component stack mismatch exception displays on portal screen

SA-82746

Summary

Component stack mismatch exception displays on the portal screen.


Error Messages

Exception caught while evaluating when pega.pegarules.pub.clipboard.InvalidReferenceException: The reference something--somexyzorg,Inc.- is not valid. Reason: unexpected character ',' at position 36, expected end of name 
RULE-OBJ-WHEN some-class somewhen #20160801T182205.406 GMT: The reference something--somexyzorg,Inc.


Steps to Reproduce

  1. Configure a When rule with @PropertyExist(.pyLabel)
  2. Maintain the value of pyLabel as something--somexyzorg,Inc.
  3. Evaluate the When rule in a rule


Root Cause



A software use or operation error. The value of .pyLabel is equal to  something--somexyzorg,Inc. on the Clipboard. The PropertyExist function is used to find whether a property exists or not on a page. Hence, the value of pylabel is considered as the name of a property as Pega does not allow the usage of special characters to name a property. As a result, the component mismatch exception occurs.

Resolution



Perform the following local-change:
Use the @PropertyHasValue(.pyLabel) function instead of the @PropertyExists(.pyLabel) function.

 

Published August 19, 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