Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server Import and Export Wizard Error

I'm trying to import an 82k+ row table from an access db to SQL Server 2008.

Using the SQL Server Import and Export Wizard, I get an error at about 78k records entered.

Here's the error:

Error 0xc0208265: Data Flow Task 1:
Failed to retrieve long data for column "members_notes".

Error 0xc020901c: Data Flow Task 1: 
There was an error with output column "members_notes" (41) on output "OLE DB Source Output" (11).
The column status returned was: "DBSTATUS_UNAVAILABLE".

Error 0xc0209029: Data Flow Task 1: 
SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.
The "output column "members_notes" (41)" failed because error code 0xC0209071 occurred, and the error row disposition on "output column "members_notes" (41)" specifies failure on error.

Error 0xc0047038: Data Flow Task 1:
SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.
The PrimeOutput method on component "Source - Query" (1) returned error code 0xC0209029. 
The component returned a failure code when the pipeline engine called PrimeOutput().
The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.
There may be error messages posted before this with more information about the failure.

The members_notes column in the access database is a memo field. In the SQL Server table to which this data is being transfered, I've defined the field as nvarchar(MAX).

I have searched for this error message and found articles suggesting to shrink my SQL db and clear my temp files on the computer doing the Export/Import, none of which worked.

Has anyone else run into this issue?

like image 228
Paul Avatar asked Dec 17 '09 19:12

Paul


2 Answers

I started searching the memo field in the Access database. The last row contained '#Error' in the memo field. When I clicked in that field I got the following message:

"The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time"

I ran Compact and Repair on the Access database. That placed a bunch of # characters in the memo field for that specific record.

I then attempted the SQL Server Import and Export Wizard again. It worked perfectly that time!

like image 98
Paul Avatar answered Oct 05 '22 20:10

Paul


I don't have enough reputation to up your answer dpii but it definitely worked for me. This problem was doing my head in and a simple compact and repair made it go away. Also beware other usesr using the file concurrently wyhile you are uploading (or having the file open yourself in Access) or you may encounter this error

like image 20
System24 Tech Avatar answered Oct 05 '22 18:10

System24 Tech