Link to home
Start Free TrialLog in
Avatar of Tyecom
TyecomFlag for United States of America

asked on

Problem Importing Data To Database Using SSIS

I have several DTS packages that I am recreating using SSIS.  The source file is a flat file on a remote server.  The destination is into an existing database table.  This table has data in it already and I will be appending the new data to the existing data.  However, the following error occurs:

"The statement has been terminated.". An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server"  Hresult: 0x80004005  Description: "Violation of PRIMARY KEY constraint 'C1249703'. Cannot insert duplicate key in object 'CA571L'.".

Can't figure this one out.  Please advise, need to resolve this as soon as possible.  Thank you very much in advance.
ASKER CERTIFIED SOLUTION
Avatar of Molly Fagan
Molly Fagan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tyecom

ASKER

Thank you for responding.  You are correct.  The data was already processed and I had to do some clean before processing them again.  Thank you very much.