Problem Note 54766: Using the MODIFY statement with SAS/ACCESS® Interface to PostgreSQL might result in a "duplicate key" error
Using SAS/ACCESS Interface to PostgreSQL to update data that contains the MODIFY statement in a DATA step might result in an error similar to the following:
ERROR: During insert: ERROR: duplicate key value violates unique constraint "t1resp_pk" 
Key (response_sk)=(18) already exists.;
Error while executing the query
 
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 PostgreSQL | Microsoft® Windows® for x64 | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows 8 Enterprise 32-bit | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows 8 Enterprise x64 | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows 8 Pro 32-bit | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows 8 Pro x64 | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows 8.1 Enterprise 32-bit | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows 8.1 Enterprise x64 | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows 8.1 Pro | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows 8.1 Pro 32-bit | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows Server 2008 | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows Server 2008 R2 | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows Server 2008 for x64 | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows Server 2012 Datacenter | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows Server 2012 R2 Datacenter | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows Server 2012 R2 Std | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Microsoft Windows Server 2012 Std | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Windows 7 Enterprise 32 bit | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Windows 7 Enterprise x64 | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Windows 7 Home Premium 32 bit | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Windows 7 Home Premium x64 | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Windows 7 Professional 32 bit | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Windows 7 Professional x64 | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Windows 7 Ultimate 32 bit | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Windows 7 Ultimate x64 | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| 64-bit Enabled AIX | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| 64-bit Enabled Solaris | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| HP-UX IPF | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Linux for x64 | 9.4 | 9.4 | 9.4 TS1M2 | 9.4 TS1M3 | 
| Solaris for x64 | 9.4 | 9.4 | 9.4 TS1M2 | 9.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.
       
| Type: | Problem Note | 
| Priority: | high | 
| Topic: | Data Management  ==>  Data Sources  ==>  External Databases  ==>  PostgreSQL
  | 
| Date Modified: | 2014-12-05 11:18:14 | 
| Date Created: | 2014-12-04 10:39:47 |