Using Derived Column task to Handle Missing Excel Columns


i receiving 50 spreadsheets per week import sql database via ssis.

the mapping table have 10 columns, ideally spreadsheets have 10 columns, wont. have maybe 5 columns, 10. fine, take can get.

the data flow task throws error when there missing mapped columns, unless missing folks know.

solution idea:

i thinking of solution use derived column task map each spreadsheet column derived column desination table, goal of checking within derived column task:

if spreadsheet column exists, use value derived column mapping sql table, otherwise place null or 0 value in sql table, spreadsheet column not exist.

ideas ?


dave

no - can't use derived column accomplish this. 

what can do, however, configure connection manager not have header row, , configure excel source read full 10 column range (like "a1:j1000").

my next question "how columns presented" in spreadsheets may or may not have columns?  in same position?  order?  named same?


todd mcdermid's blog talk me on



SQL Server  >  SQL Server Integration Services



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........