Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS pkg 2012?

$
0
0

Hello:

I have SSIS package designed in SQL 2012 where Source is SQL Server 2008 and destination is SQL Server 2012. i have CDC in SQL 2008 and my SSIS is doing ETL based on "fn_cdc_map_time_to_lsn".

I have primary key with clustered index on ID & Datetime column and this values are coming from source. datetime column value in source is coming from client workstation where some time there workstation time is +6 GMT.

i have SSIS schedule as SQL Agent job & runs every midnight. it gets data for e.g. DEC 18th midnight to DEC 19th midnight.

SSIS already get this data & because of different timing issue it fails due to PK violation and that make sense because my primary key has  clustered index on ID & Datetime column.

My destionation adapter is SQL Server, i am not using OLE DB adapter forSQL Server.

i am want to know is there way i can skip this primary key violation error as shown below & my package continue INSERTING rows in destination.

every night SSIS pkg brings 25+ millions row and because of this error it fails and i have to start again.

if there is way where i can skip this error & my pkg continue execution will be great.

Any help or pointer is greatly appreciated.

Thanks

PK Error:-

Microsoft SQL Server Native Client 11.0"  Hresult: 0x80040E2F  Description: "Violation of PRIMARY KEY constraint 'PK_XXXX'. Cannot insert duplicate key in object 'dbo.Table1'. The duplicate key value is (Dec 18 2012 11:59PM, 671269766).


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>