SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 54739: Bulk loading missing values into Greenplum using SAS/ACCESS® Interface to Greenplum results in an error

DetailsHotfixAboutRate It

Bulk loading data that contains missing values from SAS® into the Greenplum database using SAS/ACCESS Interface to Greenplum might result in an error similar to the following:

ERROR: [SAS ACCESS to Greenplum][ODBC 20101 driver][20101]ERROR: invalid input syntax 
for type double precision: " "  (seg52 slice1 sdw9:40004 pid=15097)(Detail External table 
ext_grptest, line 3 of gpfdist://ci64xsas.unx.sas.com:8081/BL_GRPTEST_7.dat, column A;
File cdbdisp.c;Line 1477;Routine cdbdisp_finishCommand;) : [SAS ACCESS to Greenplum]
[ODBC 20101 driver][20101]Failed transaction. The currenttransaction rolled back. Load 
error code: 0

This error can occur when there is missing data and you are using the CSV format to bulk load data into Greenplum, as shown below:

data test;
input A comma10.2;
datalines;
11.22
22.33
.
33.44
run;

data gplib.grptest (bulkload=yes bl_delimiter="E'\24'" bl_quote="e'\1'"
bl_format='csv' bl_host='greenplum.company.com' bl_port='8081'
bl_protocol='gpfdist' bl_delete_datafile=yes) ;
  set test;
run;

Workarounds

  • Use TEXT format to bulk load data.
  • Load data without using the bulk-load facility.

Click the Hot Fix tab in this note to access the hot fix this issue.

The hot fix enables the use of CSV format and missing values.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to GreenplumMicrosoft Windows Server 2012 R2 Datacenter9.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows Server 2012 Datacenter9.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows Server 2008 for x649.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows Server 2008 R29.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows Server 20089.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows 8.1 Pro 32-bit9.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows 8.1 Pro9.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise x649.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise 32-bit9.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows 8 Pro x649.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows 8 Pro 32-bit9.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise x649.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise 32-bit9.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft® Windows® for x649.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows Server 2012 R2 Std9.4_M29.4_M39.4 TS1M29.4 TS1M3
Microsoft Windows Server 2012 Std9.4_M29.4_M39.4 TS1M29.4 TS1M3
Windows 7 Enterprise 32 bit9.4_M29.4_M39.4 TS1M29.4 TS1M3
Windows 7 Enterprise x649.4_M29.4_M39.4 TS1M29.4 TS1M3
Windows 7 Home Premium 32 bit9.4_M29.4_M39.4 TS1M29.4 TS1M3
Windows 7 Home Premium x649.4_M29.4_M39.4 TS1M29.4 TS1M3
Windows 7 Professional 32 bit9.4_M29.4_M39.4 TS1M29.4 TS1M3
Windows 7 Professional x649.4_M29.4_M39.4 TS1M29.4 TS1M3
Windows 7 Ultimate 32 bit9.4_M29.4_M39.4 TS1M29.4 TS1M3
Windows 7 Ultimate x649.4_M29.4_M39.4 TS1M29.4 TS1M3
64-bit Enabled AIX9.4_M29.4_M39.4 TS1M29.4 TS1M3
64-bit Enabled Solaris9.4_M29.4_M39.4 TS1M29.4 TS1M3
HP-UX IPF9.4_M29.4_M39.4 TS1M29.4 TS1M3
Linux for x649.4_M29.4_M39.4 TS1M29.4 TS1M3
Solaris for x649.4_M29.4_M39.4 TS1M29.4 TS1M3
* 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.