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

@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.
Suggest Edit

Published February 9, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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