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

InvalidValueException while evaluating a When rule



InvalidValueException occurs while evaluating a When rule. As a result, the case does not proceed forward.

Error Messages

ERROR - Exception caught while evaluating when PropertyValueInvalid null .pegaToInteger() Invalid number format (was 7X) at
at com.pegarules.generated.when.ra_when_isrejcode05_71edb57d3a6024a76869cac962013696.evaluate(
at com.pega.pegarules.session.internal.mgmt.Executable.evaluateWhen(
at com.pega.pegarules.session.internal.mgmt.Executable.evaluateWhen(
at com.pegarules.generated.flow.ra_action_validaterejectclaim_f3edfdf87d12dda649131dd60748ccb1.EvaluateConnector(

Steps to Reproduce

  1. Execute the process to invoke the When rule.
  2. Set the property that will be evaluated to 7X.

Root Cause

An issue in the custom application code or rules.

The When rule is configured  with the '[first value][relation][second value]' condition. A logic is present in the compareTwoValues code to rewrite the expression under the condition when both sides are numeric and with the same Java type. That is, the Runtime Assembler context considers the RejCode property to be an Integer.


Perform the following local-change:

Change the When condition to '[first string] equals [second string]' to ensure the property is treated as a String value.

Published 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