Support Article

Upper case TRUE is working in Pega 6 but not in Pega 7

SA-38775

Summary



A user has a When rule in which they used "TRUE = true" as a condition. When this is run it returns false in the Pega 7 series, whereas, in the prior Pega 6.2 version it returned true.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a When rule with the "TRUE" = "true" condition.
  2. Run the When rule from Designer Studio.
  3. Observe in Pega 7 it returns false.


Root Cause



A defect in Pegasystems’ code or rules. In the Pega 6 series, loose casing of boolean values was not detected; whereas, in the Pega 7 series this was updated to more tightly align to java's handling of boolean values.

Resolution



Perform the following local-change:
Update all targeted boolean values to the lower case text versions:
TRUE -> true
FALSE-> false

Published May 31, 2017 - Updated June 9, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.