Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Question: How do I pervent Chinese characters from turning into ? (SSIS 2008R2)


Question: How do I pervent Chinese characters from turning into ? (SSIS 2008R2)

Author
Message
Resender
Resender
SSC-Addicted
SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)

Group: General Forum Members
Points: 473 Visits: 1564
Ok, I've been confronted by this problem during the week where I'm the only guy not on break on our SQL team.
I got a series of databases that have data concerning clients in Asia,now this week (about 3 months after go live) we get the report the Chinese characters have turned into ?

The source is an IBM DB2 UDB for iSeries IBMDASQL OLE DB Provider,in the preview the characters are shown correctly but they turn into ? as soon as they leave the source.
The fields are string [DT_STR] codepage 1252,here lies the problem,this causes the Chinese characters to be turned into ?.

However when I change it to unicode type,the package errors on the source. Is their any solution for this.
Phil Parkin
Phil Parkin
SSCrazy Eights
SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)

Group: General Forum Members
Points: 8300 Visits: 19446
Resender (4/11/2014)
Ok, I've been confronted by this problem during the week where I'm the only guy not on break on our SQL team.
I got a series of databases that have data concerning clients in Asia,now this week (about 3 months after go live) we get the report the Chinese characters have turned into ?

The source is an IBM DB2 UDB for iSeries IBMDASQL OLE DB Provider,in the preview the characters are shown correctly but they turn into ? as soon as they leave the source.
The fields are string [DT_STR] codepage 1252,here lies the problem,this causes the Chinese characters to be turned into ?.

However when I change it to unicode type,the package errors on the source. Is their any solution for this.


What exactly are you changing when you 'change to Unicode type'?


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
Resender
Resender
SSC-Addicted
SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)

Group: General Forum Members
Points: 473 Visits: 1564
Phil Parkin (4/11/2014)

What exactly are you changing when you 'change to Unicode type'?


I go into the advanced editor and change the datatype of the column
Phil Parkin
Phil Parkin
SSCrazy Eights
SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)

Group: General Forum Members
Points: 8300 Visits: 19446
Resender (4/11/2014)
Phil Parkin (4/11/2014)

What exactly are you changing when you 'change to Unicode type'?


I go into the advanced editor and change the datatype of the column


Can you post the error message?


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
Resender
Resender
SSC-Addicted
SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)

Group: General Forum Members
Points: 473 Visits: 1564
When trying to execute with the colums put on unicode, via advanced editor

TITLE: Package Validation Error
------------------------------

Package Validation Error

------------------------------
ADDITIONAL INFORMATION:

Error at Pull [Source [1]]: The output column "VNDNAM" (1294) on the error output has properties that do not match the properties of its corresponding data source column.

Error at Pull [SSIS.Pipeline]: "component "Source" (1)" failed validation and returned validation status "VS_NEEDSNEWMETADATA".

Error at Pull [SSIS.Pipeline]: One or more component failed validation.

Error at Pull: There were errors during task validation.

(Microsoft.DataTransformationServices.VsIntegration)

------------------------------
BUTTONS:

OK
------------------------------



------------------------------------------------------------------------------------------------------

TITLE: Editing Component
------------------------------

The component is not in a valid state. The validation errors are:
Error at Pull [Source [1]]: The output column "VNDNAM" (1294) on the error output has properties that do not match the properties of its corresponding data source column.


Do you want the component to fix these errors automatically?

------------------------------
BUTTONS:

&Yes
&No
Cancel
------------------------------


Phil Parkin
Phil Parkin
SSCrazy Eights
SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)

Group: General Forum Members
Points: 8300 Visits: 19446
Did you modify the datatype of the column in both 'External Columns' and 'Output Columns'?


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
Resender
Resender
SSC-Addicted
SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)

Group: General Forum Members
Points: 473 Visits: 1564
Phil Parkin (4/13/2014)
Did you modify the datatype of the column in both 'External Columns' and 'Output Columns'?

yes I changed them both from string DT_STR to DT_WSTR & that leads to the aforementioned error message
Phil Parkin
Phil Parkin
SSCrazy Eights
SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)

Group: General Forum Members
Points: 8300 Visits: 19446
Resender (4/14/2014)
Phil Parkin (4/13/2014)
Did you modify the datatype of the column in both 'External Columns' and 'Output Columns'?

yes I changed them both from string DT_STR to DT_WSTR & that leads to the aforementioned error message


And are you directing errors somewhere else? Have you also checked the error output?


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
Resender
Resender
SSC-Addicted
SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)

Group: General Forum Members
Points: 473 Visits: 1564
There no error message except for the validation error,cause that stops the execution of the rest of the package
Phil Parkin
Phil Parkin
SSCrazy Eights
SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)

Group: General Forum Members
Points: 8300 Visits: 19446
Resender (4/14/2014)
There no error message except for the validation error,cause that stops the execution of the rest of the package


I mean are you redirecting error rows - have you checked the error output?

Like this, I mean.


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search