SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 70697: The message "WARNING: Invalid date value '1581-1-1'" occurs when loading Oracle DATE and TIMESTAMP values into SAS® Cloud Analytic Services (CAS)

DetailsHotfixAboutRate It

When loading Oracle DATE and TIMESTAMP data types to CAS, some of the rows might not load.  

This issue occurs for values that are in the year range 0100-1581.

If using the numReadNodes=1 data connector option, a WARNING is written to the SAS log for each row that is not loaded. Here is an example:

WARNING: Invalid date value '1581-1-1'

If more than one CAS Worker node is available, and numReadNodes is 0 or greater than 1, no messages are written to the SAS log. However, CAS Worker logs might display a WARN message that is similar to the following:

2024-02-29T04:05:22,385 WARN  [00000005] 31985 user-id MAIN [tkcastkts_load.c:3061] - fetch_thread: Fetch returned warning, rc = TKTS_SUCCESS_WITH_INFO

In addition, for each invalid date, an INFO message similar to the following occurs:

2024-02-29T04:05:22,385 INFO  [00000005] 31985 user-id MAIN [tkcastkts_con.c:2124] - Invalid date value '1581-1-1'

Workaround

The only workaround for this issue is to use an Oracle LIBNAME to load your data to CAS.

Click the Hot Fix tab in this note for a link to instructions about accessing and applying the software update.

After applying the hot fix, you can add the invalidDate= option to your CASLIB. Here are the valid options:

  • ERROR specifies that when an invalid DATE or DATETIME value is detected, loading the record fails, and an error is printed in the SAS log.
  • SILENT specifies that SAS converts an invalid DATE or DATETIME value to a missing value, and no message is printed in the SAS log.
  • WARN specifies that SAS converts an invalid DATE or DATETIME value to a missing value and prints a warning in the SAS log.


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Data Connector to OracleLinux for x64V.03.05Viya
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.