Ok. So, I’m getting data from a website and putting it in a file. I’m then uploading the file to a database. I had changed the sizes of the strings in the file to match the size of the strings in the database. But, then I start getting an error that it’s going to be truncated because I’m putting 150 into 50. Where!!!???!!! The database is 150, the file is 150, so what’s left??? Well, the output of the file is left. Not only do you have to change the input to the file, you have to change the output of the file. Ouch!
To do this:
- Go to your source file box in your data flow
- Right-click and choose Advanced Editor
- Choose the tab, Input and Output Properties
- Choose Flat File Source Output
- Change External Columns AND Output Columns!
Ok, updated 5 minutes later. You can’t really change the External Columns this way, even though it lets you. Instead, you have to update the External Columns through the Connection Manager.
To do this:
- Go to the sub-tab Package Explorer
- Open the Connection Managers “folder”
- Double-click on the connection manager for your file
- Choose Advanced from the list on the left
- Update the OutputColumnWidth of each column you need to change
- Click OK
- Go back to the Data Flow
- If you have a little yellow alert and have already changed your Output Columns, open the Advanced Editor, verify the sizes are OK and click OK. Now the little yellow alert should be gone.
Whew! I hope that’s it for today!
Just one more fun thing, the Control Flow still seems to think there’s a problem in the Data Flow (a little yellow warning), but if you double-click on it it takes you to the Data Flow where there are no warnings. Oiw!