Data Conversion Failed

Hi Guys,

Check the below errors:

[Destination - ISSAC_OLD-BGSRT_TransactionHeader_csv [127]] Error: Data conversion failed. The data conversion for column "OthersReason" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
[Destination - ISSAC_OLD-BGSRT_TransactionHeader_csv [127]] Error: Cannot copy or convert flat file data for column "OthersReason".

If we are trying to export data from a table to CSV file using SSIS package, If that table column having special symbols in the data  then the above conversion error we will get.

I know the  temporary solution for this:

SELECT ID,
        REPLACE(REPLACE(CAST(Comment AS varchar(255)),'?',' '),',',' ') Comment
FROM tblInspectionFailures  WHERE (ID = 216899)

but The above query will not retrive the special chars to CSV file, It will just replace the Special chars with empty space.

But I want special symbols also in the CSV file.

Can anyone please suggest some idea to get loaded special symboles also?

 

 

 

Prathap ReddyGolledla | Answered# (0)
Reply For This Question
Answer(s) Posted
No Answer Found. Please post your answer!
Post Your Answer
   Please login to post your answer.
  Member Login
  Email Address  
  Password  
   Sign Up?  
  Privacy   Terms Of Use   Contact Us
© 2016 Developerin.Net. All rights reserved.
Trademarks and Article Images mentioned in this site may belongs to Microsoft and other respective trademark owners.
Articles, Tutorials and all other content offered here is for educational purpose only and its author copyrights.