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)
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
SAS System | SAS Data Connector to Oracle | Linux for x64 | V.03.05 | | Viya | |
*
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.
When Oracle DATE and TIMESTAMP columns contain values before 1582, they will prevent the Data connector for Oracle from loading the row to CAS.
Type: | Problem Note |
Priority: | alert |
Date Modified: | 2024-03-20 17:07:29 |
Date Created: | 2024-03-11 06:08:16 |