I am trying to import about 10,000 records from an Excel spreadsheet into a ready made empty SQL table using SQL Server Import and Export Wizard 2014.
The data has a few odd characters such as the trademark sign or letters with accents etc. I kept importing it then when it failed I would see how many records had worked and go into Excel and around the same place I was able to find the character causing the problem and do a search replace throughout the spreadsheet to replace it it with the correct HTML for that character.
However I have now got stuck as the import keeps failing and I cannot see any odd characters near the point of failure.
My main question is: Is there any way to find out EXACTLY which line is causing the problem? It seems sometimes the import does not stop at the exact point of failure but several records before it?
The table I am importing to has fields which are definitely long enough for the data.
This is the error I am getting:
Messages
Error 0xc02020c5: Data Flow Task 1: Data conversion failed while converting column "ProductDescription" (224) to column "ProductDescription" (367). The conversion 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 1: The "Data Conversion 0 - 1.Outputs[Data Conversion Output].Columns[ProductDescription]" failed because truncation occurred, and the truncation row disposition on "Data Conversion 0 - 1.Outputs[Data Conversion Output].Columns[ProductDescription]" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
(SQL Server Import and Export Wizard)
Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Data Conversion 0 - 1" (359) failed with error code 0xC020902A while processing input "Data Conversion Input" (360). 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 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
(SQL Server Import and Export Wizard)
Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Source - Sheet1$ returned error code 0xC02020C4. 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)
Thanks in advance!