I'm creating an SSIS package to import Excel files (which have different layouts) into a SQL Server table with 150 columns.
The SSIS package has a Foreach Loop Container within which is a Data Flow Task which has an Excel Source component and an OLE DB Destination component.
The Data Flow Task will be ran for each Excel file so the Excel Source component needs to work for every file.
I've set up the Excel Source component with 150 Unicode string columns of length 255, and I've set ValidateExternalMetadata to False, however I'm getting the error: 'Column "F143" cannot be found at the datasource' when testing the package on an Excel file with 142 columns of data.
My question is: How do I get the package to ignore this error and import the columns that exist, or is there another way of dealing with the above situation?