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 |
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2013-10-28 : 04:20:39
|
im getting this error in SSIS to import to CSV file. i tried XLS file same issue. how can i solve this?already try to increase the output column width but still same error.error:[Flat File Destination 1 [220]] Error: Data conversion failed. The data conversion for column "column1" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".select *from (select convert(nvarchar(100),'column1')column1,1 as orderingunion allselect convert(nvarchar(100),column1) column1,2 as ordering from tableA)xorder by orderingcolumn1column1hgdhghasrgagadfgadtuhetydgnnfgghsdfg and dghgdhbsdfbs |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-10-28 : 07:04:30
|
check if column1 has enough size to hold full data in ssis metadata------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2013-10-28 : 09:10:42
|
column1 in tableA already set as nvarchar 100 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-10-28 : 09:17:41
|
Was this casting added later? Check if the metadata set in package is same as current source field length ie DT_WSTR 100 in SSIS------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2013-10-28 : 09:30:53
|
the table already set earlier with nvarchar 100already checked in ssis length..applied 100 |
|
|
|
|
|