I was working on SSIS package to load data from several sources into final destination table. And I see a yellow exclamation mark on data flow task from one of the sources. The message was 'Warning: Truncation may occur due to inserting data from data flow column "Description" with a length of 255 to database column "Description" with a length of 250. When I checked the source column length and destination it was obvious that the lengths of the columns were different and SSIS was correct about complaining. I verified that there was not a record that was inserted with the length greater than 175 char (the field is populated by app in one of the 5 possible defined descriptions). So I did the changes below to get SSIS stop complaining about the length of the column. To fix the issue follow the steps below:
Open the Data Flow task
On the source task right click and select Advanced Editor
Click on Input and Output Properties tab
Expand OLE DB Source Output
Expand External columns and check the columns we need
Expand Output Columns
Click on corresponding column
Change Length property of the column to desired length and refresh.
Also on Destination side:
Open Advanced Editor (on OLE DB Destination)
Click on Input and Output Properties tab
Click on Refresh button
Check the value of the length is correct
HTH,
Bulent
Monday, November 29, 2010
Subscribe to:
Posts (Atom)