Author |
Topic |
sagitariusmzi
Posting Yak Master
113 Posts |
Posted - 2011-11-28 : 06:32:27
|
I have a unicode data in my database and i wants to exports it in Flat file.But i am getting this error"[Flat File Destination [117]] Error: Data conversion failed. The data conversion for column "Copy of file_path" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".I have this structure image_id uniqueidentifierimage_file varbinary(max) --contains filestreamfile_path nvarchar(500) --contains unicode stringany help regarding this will be appreciated.thanks |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-11-28 : 07:21:19
|
whats the length you've given for it. looks like its below its max length which is why it errors telling that truncation will occur------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
sagitariusmzi
Posting Yak Master
113 Posts |
Posted - 2011-11-28 : 07:38:11
|
The Max len is MAX(LEN(file_path)) = 54max(Datalength(file_path)) =108While it does not truncate the data instead it gives the error "[Flat File Destination [117]] Error: Data conversion failed. The data conversion for column "Copy of file_path" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page" |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-11-28 : 07:39:21
|
are you trying to move it to non unicode field?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
sagitariusmzi
Posting Yak Master
113 Posts |
Posted - 2011-12-03 : 02:16:47
|
i m trying to move it in Flat File |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-12-03 : 02:18:29
|
quote: Originally posted by sagitariusmzi i m trying to move it in Flat File
by any chance did you modify type of any of columns in table?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
sagitariusmzi
Posting Yak Master
113 Posts |
Posted - 2011-12-03 : 02:23:57
|
I have this structure of sql server DB and i am trying to export it in Flat file, the data it contains is filesteam(images) and urdu characters. when i try to export only filestream, it exported successfully but when i included nvarchar column it given the error specified.I have this structureimage_id uniqueidentifierimage_file varbinary(max) --contains filestreamfile_path nvarchar(500) --contains unicode string |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-12-03 : 02:32:04
|
quote: Originally posted by sagitariusmzi I have this structure of sql server DB and i am trying to export it in Flat file, the data it contains is filesteam(images) and urdu characters. when i try to export only filestream, it exported successfully but when i included nvarchar column it given the error specified.I have this structureimage_id uniqueidentifierimage_file varbinary(max) --contains filestreamfile_path nvarchar(500) --contains unicode string
check if code page used in ssis supports urdu characters------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
sagitariusmzi
Posting Yak Master
113 Posts |
Posted - 2011-12-03 : 02:48:21
|
i didn't changed any code page |
|
|
|