How can you remove the warnings about “unused columns” arising from the Pivot key value column name column when using the Unpivot data flow item …
Warning: 2012-05-10 13:30:19.97
Code: 0x80047076
Source: Import Client_Categories Table SSIS.Pipeline
Description: The output column "Client_Categories" (442) on output
"Unpivot Output" (224) and component "Unpivot" (222) is not
subsequently used in the Data Flow task. Removing this unused output
column can increase Data Flow task performance.
End Warning
By this I mean actually remove the warning, rather than just not show it in the output … we want to run DTEXEC with the /WarnAsError option
One hack solution I’ve found to getting rid of the “Unused column” warning that seems to work is to add a
Script Componentto theData Flowand have it use the unused pivot key value