Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2012-05-17 : 11:44:54
|
Hello guys,we are running an e commerce site that imports a CSV file of products sent by a partner site of ours into a table.However the partner, offered us a choice of XML or CSV files, and we went for CSV. Which has a complex listing of products and some of the data are quite long, e.g. having urls and descriptions.When i try to manually import into a table and create an SSIS package, it fails. And the most recent error am getting is below.Bearing in mind, I changed all the data types of the destination table to varchar(max) since the default was not workingany adviceEhi- Executing (Error)MessagesError 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "Column 4" 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 "output column "Column 4" (26)" failed because truncation occurred, and the truncation row disposition on "output column "Column 4" (26)" 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 1: An error occurred while processing file "C:\Users\1\Downloads\feed.csv" on data row 2. (SQL Server Import and Export Wizard) Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Source - feed_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) |
|
yosiasz
Master Smack Fu Yak Hacker
1635 Posts |
Posted - 2012-05-22 : 15:01:42
|
1. manually save csv as xml2. open xml file and see what is the structure of xml 3. post sample xml here<><><><><><><><><><><><><><><><><>If you don't have the passion to help people, you have no passion |
|
|
|
|
|