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
- Create a When rule with the "TRUE" = "true" condition.
- Run the When rule from Designer Studio.
- 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 June 9, 2017 - 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.