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

SOAP Service response for blank date displays as 1970/01/01

SA-18981

Summary



Service Response display 1970-01-01 if date is not provided in service response.

Error Messages



No errors

Steps to Reproduce



1. Create a SOAP service in Pega mapped to a datetime property and leave the property blank.
2. Invoke SOAP-UI request to Pega SOAP Service.
3. Check SOAP response to find that the date in the response has a value of “1970-01-01” instead of blank.
 

Root Cause



During conversion of a java Date to a correpoding XML Schema Datetime, pega defaults to the epoch/unix date of 01/01/1970, if the incoming value / java date is blank.


Resolution



Perform the following local-change:
 
Set the following Dynamic System settings to “true” to tell Pega to change the default behavior of putting the epoch date leaving it blank.
 
  1. Owning ruleset - Pega-IntegrationEngine
Setting purpose - disableEpochDate
Value - true
 
  1. Owning ruleset - Pega-IntegrationEngine

Setting purpose - disableEpochDateTime
Value - true

Published January 31, 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?

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