Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i have import the data from Csv file to sql2005 ,i am getting below errors please help me..?



* Error 0xc02020a1: Data Flow Task: Data conversion failed. The data conversion for column "Column 29" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
(SQL Server Import and Export Wizard)

* Error 0xc020902a: Data Flow Task: The "output column "Column 29" (126)" failed because truncation occurred, and the truncation row disposition on "output column "Column 29" (126)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
(SQL Server Import and Export Wizard)

* Error 0xc0202092: Data Flow Task: An error occurred while processing file "C:\Users\ravi\Desktop\Cus_csv.csv" on data row 16.
(SQL Server Import and Export Wizard)

* Error 0xc0047038: Data Flow Task: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Source - Cus_csv_csv" (1) returned error code 0xC0202092. 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.
(SQL Server Import and Export Wizard)

* Error 0xc0047021: Data Flow Task: SSIS Error Code DTS_E_THREADFAILED. Thread "SourceThread0" has exited with error code 0xC0047038. There may be error messages posted before this with more information on why the thread has exited.
(SQL Server Import and Export Wizard)

* Error 0xc0047039: Data Flow Task: SSIS Error Code DTS_E_THREADCANCELLED. Thread "WorkThread0" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown. There may be error messages posted before this with more information on why the thread was cancelled.
(SQL Server Import and Export Wizard)

* Error 0xc0047021: Data Flow Task: SSIS Error Code DTS_E_THREADFAILED. Thread "WorkThread0" has exited with error code 0xC0047039. There may be error messages posted before this with more information on why the thread has exited.
(SQL Server Import and Export Wizard)
Posted

The error messages are pretty explicit:
The data conversion failed, because (it would appear) you are trying to import data that is too long for the field it is going into.

The best solution would be either to modify your source XML (if you are doing this as a one off and there isn't a lot of data) or to change the database definition to allow for the maximum length of your XML fields.
 
Share this answer
 
you want to import a csv file into sqlserver database table.

but csv file doesn't contains information about datatypes of data stored in csv file.

SOLUTION:

you must to match your csv data manully with datatype, size, length with your sqlserver table fields in which u want to import.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900