Solved

What does this SQL Import Error Message mean?

Posted on 2008-10-27
7
1,533 Views
Last Modified: 2012-05-05
I am importing an Excel file in to SQL 2005 but I am receiving the following error message:

- Copying to [dbo].[table] (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: "Unspecified error".
 (SQL Server Import and Export Wizard)
 
Error 0xc020901c: Data Flow Task 1: There was an error with input column "identity" (184) on input "Destination Input" (141). The column status returned was: "The value violated the integrity constraints for the column.".
 (SQL Server Import and Export Wizard)
 
Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "Destination Input" (141)" failed because error code 0xC020907D occurred, and the error row disposition on "input "Destination Input" (141)" 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 - iida_members_update_new" (128) failed with error code 0xC0209029 while processing input "Destination Input" (141). 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)
 

***** There are no duplicates or non int values in the identity column of the excel file.  Where should I look next?
0
Comment
Question by:trumpman
[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
7 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
ID: 22813780
My guess is that you're importing data that violates a primary key or a unique constraint....or possible a foreign key constraint.
0
 
LVL 22

Expert Comment

by:PedroCGD
ID: 22813834

If you are not trying to insert duplicate records check SQL version because "Microsoft SQL Server Native Client 10.0" is the provider for SQL 2008.
0
 

Author Comment

by:trumpman
ID: 22813959
@chapmandew:

How can I check this?

...here is the end of my create table{}...

 CONSTRAINT [PK_mytable] PRIMARY KEY CLUSTERED
(
      [identity] ASC
) ON [PRIMARY]
) ON [PRIMARY]


@PedroCGD:

What do I change it to to reflect the current version?  I have almost fully upgraded to 2008 now.  However, some old dbases are still on 2005.
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 22

Expert Comment

by:PedroCGD
ID: 22814133
Try create a new connection to a SQL Native client 9.0 (SQL 2005)
See image
regards
SQL.JPG
0
 

Author Comment

by:trumpman
ID: 22814295
@PedroCGD:

I tried importing a separate table and was successful.  While the provider difference might not be an accepted standard, I do not believe this is causing my error.
0
 
LVL 22

Expert Comment

by:PedroCGD
ID: 22814372
ok... maybe, but the errro is inserting not reading.
but the error seems that you are trying to insert a forerign key that does not exist in related table...
regards
0
 

Author Comment

by:trumpman
ID: 22814979
@Chapmandew, your original post was correct.  I removed all constraints and noticed that there were four rows at the end of the table after import to SQL with all NULL values.  I went back to the excel file and selected the first four empty rows at the end of the file and deleted them.  Importing the file after this adjustment posted no errors or NULL rows.

- Trumpman
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

623 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