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

DateTime set "01-01-1970" when property value is empty

SA-11461

Summary



After applying the Parse-XML rule, the Date type element is set to "01-01-1970", when the referenced source Clipboard Property value is empty

Error Messages



Not Applicable.

Steps to Reproduce



1. Create Page with DateTime property.
2. Create XML Stream.
3. Run XML Steam on created page with emply DateTime property.

Root Cause



It is a default behavior to set the Date to epoch date, that is 01-01-1970, when any java operations are performed on an empty Date/DateTime type property.

However in Pega 7.1.8 there are two Dynamic System Settings that affects the way Date/DateTime property are evaluated when they are empty or have "0" as value.
That is. when the DSS is set to true, an empty Date or DateTime type property value is not converted to epoch date.

Resolution



User is suggested to set the following Dynamic system setting's value to "true".

1. for Date property             : use dynamic system setting "
disableEpochDate".
2. for DateTime property     : use dynamic system setting "
disableEpochDateTime".

both of these DSS's owning ruleset is "
Pega-IntegrationEngine".



 

Published July 27, 2015 - Updated October 8, 2020

Was this useful?

50% 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