Support Article
@differenceBetweenDays not working properly and shows error
SA-19317
Summary
Error received from @differenceBetweenDays with Pega 7.1.8.
Error Messages
com.pega.pegarules.pub.runtime.IndeterminateConditionalException: ** PropertyValueInvalid param.your_property.pegaToBigDecimal() Invalid number format (was 20160125T050000.000 GMT)
Steps to Reproduce
The issue happens when the function is executed.
Root Cause
A defect in Pegasystems’ code or rules. Sometimes it happens that the "mode" of a property, for example integer, string is not known at runtime, and the system assigns it type "unknown".
This is valid, and the code should do a lookup in the Data Dictionary to get the exact type. It does not, but merely guesses that the property is an Integer, which is wrong.
Resolution
Apply HFix-23182. If the problem persists, ensure the string parameter is converted to a datetime property prior to performing the datetime comparison.
Published February 9, 2016 - 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.