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

Unable to set a value in property with different DateTime



Unable to set the value in a property with a different DateTime property. When an empty value is set, Error occurs while executing the strategy.

Error Messages

Strategy component: [Testing].[TestTable] failed to execute. Details: in RULE-DECLARE-DECISIONTABLE @BASECLASS: PropertyValueInvalid

Steps to Reproduce

  1. Create a Strategy with a decision table to set an empty value to a DateTime property.
  2. Utilize the property in other components of the Strategy.

Root Cause

The dtu.dateStringToBigDecimal(dateString, DateTimeUtils.DateTypes.valueOf(dateType)); method's contract is 'dateString' and cannot be null. If DateTime property is blank, then the DateTime.FormatDateTime(.Datetimeprop,"yyyyMMdd","","") returns null.


Perform the following local-change:

As a local-change, use the @DateTime.dateStringToBigDecimal only when the value is not null.
Suggest Edit

Published January 2, 2020 - Updated December 2, 2021

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