Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

ANSWERED - Flat file problem - input column is 1252 and is required to be 65001 Expand / Collapse
Author
Message
Posted Friday, October 4, 2013 3:56 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, October 15, 2013 4:32 PM
Points: 63, 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.
Post #1501782
Posted Wednesday, September 17, 2014 7:22 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, September 20, 2015 2:02 PM
Points: 4, 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!
Post #1614429
Posted Friday, July 8, 2016 7:49 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, July 29, 2016 1:14 PM
Points: 2, Visits: 502
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.
Post #1800520
Posted Friday, July 29, 2016 12:28 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, August 3, 2016 1:03 PM
Points: 3, Visits: 40
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
Post #1805533
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse