SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


ANSWERED - Flat file problem - input column is 1252 and is required to be 65001


ANSWERED - Flat file problem - input column is 1252 and is required to be 65001

Author
Message
etl.laptop
etl.laptop
Mr or Mrs. 500
Mr or Mrs. 500 (527 reputation)Mr or Mrs. 500 (527 reputation)Mr or Mrs. 500 (527 reputation)Mr or Mrs. 500 (527 reputation)Mr or Mrs. 500 (527 reputation)Mr or Mrs. 500 (527 reputation)Mr or Mrs. 500 (527 reputation)Mr or Mrs. 500 (527 reputation)

Group: General Forum Members
Points: 527 Visits: 116
I am only trying to copy a whole table into a flat file, with column names and all. I made a blank txt file and assigned it a connection manager. Then I connected the source
table to a FF destination.

The flat file destination has the error -
Error 8 Validation error. Data Flow Task Flat File Destination [16]: The code page on input column "My_Code" (56) is 1252 and is required to be 65001. Package.dtsx

I don't know why this happens and how to fix it. Please help me to fix this.
----

Guess what ! I figured it out accidentally while thinking about it. Solution -

Go to the connection manager of FF. Your code page will be 65001 ie UTF-8. Set it to 1252 ie ANSI - Latin I.
Then, if you see a warning, reconnect the two components.

What happened, why it happened,I have no clue.
ChunkyLover1974
ChunkyLover1974
Grasshopper
Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)

Group: General Forum Members
Points: 16 Visits: 8
That's really helpful. New to SSIS and hit this error and I've been scratching my head for the past half hour.

Nice one!
briwolfe
briwolfe
Grasshopper
Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)

Group: General Forum Members
Points: 16 Visits: 508
FYI
I had a simple extract package ... working fine.
I went in and added a column to the extract proc, added the column to the destination file.
Opened this SSIS package refreshed the meta data and mapped the new column in the data flow task from proc to file.
Then when running in debug I got this exact code page error on an EXISTING column that had not changed position nor data type.

The solution was to change the code page of the destination file connection to the invalid suggestion in the error msg (65001) run it so it fails again then switch the code page back to the original correct setting 1252 and run again.
happy happy.
Gracia
Gracia
Valued Member
Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)

Group: General Forum Members
Points: 63 Visits: 43
In my case, I am getting the data from a SP and dumping it into a text file. I need the text file to be Code Page 65001 (UTF-8) per client request.
The problem was one of the fields in my SP was of type char, I did a cast to nvarchar(1) and then I was able to set the Code Page to 65001.
Thanks
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