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.

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 error Flat File Destination 1 [220]

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 ordering
union all
select convert(nvarchar(100),column1) column1,2 as ordering from tableA
)x
order by ordering

column1
column1
hgdhgh
asrgag
adfgad
tuhety
dgnnfg
ghsdfg and dghgdh
bsdfbs

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 MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

peace
Constraint Violating Yak Guru

420 Posts

Posted - 2013-10-28 : 09:10:42
column1 in tableA already set as nvarchar 100
Go to Top of Page

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 MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

peace
Constraint Violating Yak Guru

420 Posts

Posted - 2013-10-28 : 09:30:53
the table already set earlier with nvarchar 100

already checked in ssis length..applied 100
Go to Top of Page
   

- Advertisement -