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.
- Owning ruleset - Pega-IntegrationEngine
Value - true
- Owning ruleset - Pega-IntegrationEngine
Setting purpose - disableEpochDateTime
Value - true
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.