Problem Note 70838: Inserting missing values into AWS Redshift using the SAS/ACCESS® Interface to JDBC might fail with “ERROR: invalid input syntax for type date: "N"”
The following error might occur when using SAS/ACCESS Interface to JDBC to insert missing values:
ERROR: Execute error: com.amazon.redshift.util.RedshiftException: ERROR: invalid input syntax for type time: "N"
This error occurs when all the following are true:
- You use Unicode SAS (that is ENCODING=UTF-8).
- You use the SAS/ACCESS Interface to JDBC with Amazon Redshift - Cloud Data Warehouse.
- You use the SAS LIBNAME or data set option BULKLOAD=NO .
- Missing values are present in your source data for DATE, DATETIME, and/or TIME values.
The only workarounds are to do the following:
- Use the default SAS LIBNAME or data set option BULKLOAD=YES.
- Change your code to use the SQL Pass-Through Facility.
- Upgrade to SAS® 9.4M8 (TS1M8).
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to JDBC | 64-bit Enabled AIX | 9.4 TS1M7 | 9.4 TS1M8 |
64-bit Enabled Solaris | 9.4 TS1M7 | 9.4 TS1M8 |
HP-UX IPF | 9.4 TS1M7 | 9.4 TS1M8 |
Linux for x64 | 9.4 TS1M7 | 9.4 TS1M8 |
Solaris for x64 | 9.4 TS1M7 | 9.4 TS1M8 |
*
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.
UNICODE SAS fails to insert missing values into the DATE, DATETIME, and TIME columns when using the JDBC engine
Type: | Problem Note |
Priority: | high |
Date Modified: | 2024-07-15 10:35:06 |
Date Created: | 2024-06-11 04:20:35 |