Solved

SQL server Import Export Wizard error

Posted on 2013-12-16
6
3,435 Views
Last Modified: 2016-02-10
Hello there,

I am trying to copy data from one db to abother db using SQL server Import Export Wizard. Bu I get this error when I try to execute the wizard


- Copying to [dbo].[supplierOrder] (Error)
Messages
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "The statement has been terminated.".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Violation of PRIMARY KEY constraint 'PK__Section__3213E83F21B6055D'. Cannot insert duplicate key in object 'dbo.Section'.".
 (SQL Server Import and Export Wizard)
 
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "The statement has been terminated.".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Violation of PRIMARY KEY constraint 'PK__Supplier__3213E83F29572725'. Cannot insert duplicate key in object 'dbo.Supplier'.".
 (SQL Server Import and Export Wizard)
 
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "The statement has been terminated.".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Violation of PRIMARY KEY constraint 'PK__supplier__3214EC2708162EEB'. Cannot insert duplicate key in object 'dbo.supplierOrder'.".
 (SQL Server Import and Export Wizard)
 
Information 0x402090df: Data Flow Task 1: The final commit for the data insertion in "component "Destination 3 - supplierOrderReceive" (350)" has started.
 (SQL Server Import and Export Wizard)
 
Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "Destination Input" (53)" failed because error code 0xC020907B occurred, and the error row disposition on "input "Destination Input" (53)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
 (SQL Server Import and Export Wizard)
 
Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "Destination Input" (280)" failed because error code 0xC020907B occurred, and the error row disposition on "input "Destination Input" (280)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
 (SQL Server Import and Export Wizard)
 
Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "Destination Input" (171)" failed because error code 0xC020907B occurred, and the error row disposition on "input "Destination Input" (171)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
 (SQL Server Import and Export Wizard)
 
Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination 1 - Supplier" (158) failed with error code 0xC0209029 while processing input "Destination Input" (171). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.
 (SQL Server Import and Export Wizard)
 
Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination - Section" (40) failed with error code 0xC0209029 while processing input "Destination Input" (53). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.
 (SQL Server Import and Export Wizard)
 
Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination 2 - supplierOrder" (267) failed with error code 0xC0209029 while processing input "Destination Input" (280). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.
 (SQL Server Import and Export Wizard)
 
Information 0x402090e0: Data Flow Task 1: The final commit for the data insertion  in "component "Destination 3 - supplierOrderReceive" (350)" has ended.
 (SQL Server Import and Export Wizard)
 



0
Comment
Question by:zolf
  • 3
  • 3
6 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 39723198
The errors indicate that you have primary key violations in the destination tables, i.e. a record already exists with the specified primary key.
Tables mentioned :

dbo.Section 'PK__Section__3213E83F21B6055D'
dbo.Supplier 'PK__Supplier__3213E83F29572725'
dbo.SupplierOrder 'PK__supplier__3214EC2708162EEB'
0
 

Author Comment

by:zolf
ID: 39723201
yes I agree but the tables are empty in the destination db
0
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 39723206
Is it possible these primary keys are not set in your source database and you have duplicate rows in the source database but have set PKs in the destination database and therefore the errors are occurring when the duplicates are encountered in the source data.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:zolf
ID: 39723219
I don't get it can. can you elaborate your comment. I am trying to copy table from one db to another db
0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 39723225
Do the same primary key constraints exist in the source database, as it would seem that there is data in your source table that has duplicate keys and this is why the errors are occurring when you try to import the data to the new db that has the primary key constraints set.
0
 

Author Comment

by:zolf
ID: 39723283
what do I do so I be able to transfer data from one db table to another db table
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now