Cannot insert duplicate key in object 'dbo.POLICY'
Hi Gurus, I am facing this issue while running the package. Please help to provide the cause. Thanks in advance. Executed as user: \portiadts. ...n 9.00.5000.00 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 8:13:37 AM Error: 2012-08-08 08:28:40.57 Code: 0xC0202009 Source: DFT - Extract from Staging OLE_DST income - POLICYNew [3689] Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E2F. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E2F Description: "The statement has been terminated.". An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E2F Description: "Violation of PRIMARY KEY constraint 'PK_POLICY'. Cannot insert duplicate key in object 'dbo.POLICY'.". End Error Error: 2012-08-08 08:28:40.62 Code: 0xC0209029 Source: DFT - Extract from Staging OLE_DST sales- POLICYNew [3689] Description: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. Th... The package execution fa... The step failed.
August 8th, 2012 1:20am

You are trying to insert duplicates into table for column PK_Policy.. Check your data by putting data viewer.., Remove the duplicates before inserting the data.
Free Windows Admin Tool Kit Click here and download it now
August 8th, 2012 1:54am

Hi, Message clearly suggests that, the rows you are trying to insert into POLICY table contains the value for primary key column which already available in table or may the new rows are having same ID more then one time. Now, if you want to check which rows are causing issue, you can redirect the filer rows to some other table. - Chintak (My Blog)
August 8th, 2012 2:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics