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



Error received from @differenceBetweenDays with Pega 7.1.8.

Error Messages ** 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.


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

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