Solved

SQL server Import Export Wizard error

Posted on 2013-12-16
6
3,612 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

696 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