SSIS loading data from Excel hits error - External Table is not in the expected format

eng80327 used Ask the Experts™

I have been able to import.  However, for some reason... when I try to perform Ssis on this particular excel file, i.e. BDE.xls, I hit an error:

External table is not in the expected format.

I have uploaded both the excel file and the image.  Would be grateful for any advise.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
The file is indicated by Excel 2010 as in "Excel 2" format, which could be too old a format for SSIS to understand.  Try saving it to a more recent Excel format before processing.
Alpesh PatelSolution Architect at TCS (SAFe®Agilist, TOGAF® Foundation, PSM I®, MCP, MCSD)

Please make sure the package is correct for Column mapping.



I see... I can definitely save it into a newer format and it will run.  However, because this excel file is generated automatically by a 3rd party device (biometric attendance marker).... it is meant to be run through a scheduled job without human intervention.

Any other ways around it?


I cannot even get to see the sheets in the excel file.  So really no column mapping to talk about...
I was wondering where  you got the file... who still uses Excel 2 format these days?  :-)  Those embedded device management system never seem to upgrade there software interface.  Anyways, it's going to be a little tricky.  One way I can think of is to run a script task in SSIS to convert the file format.  The script would be something like this vbScript below.

You don't have to use vbScript.  Any script supported by your SSIS environment will be fine.  Also note the exact Excel format used will be the default one for the version of Excel installed on the running computer.
Dim sSourceFile
Dim oExcel
Set oExcel = CreateObject("Excel.Application")
Dim oBook
Set oBook = oExcel.Workbooks.Open(sSourceFile)
oBook.SaveAs sTargetFile
oBook.Close False

Open in new window

Moussa MokhtariEnterpreneur
Top Expert 2016

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial