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

Hi,

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.
SsisExcelError.png
BDE.xls
eng80327Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

techhealthDirectorCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Alpesh PatelAssociate ConsultantCommented:
Please make sure the package is correct for Column mapping.
eng80327Author Commented:
Techhealth:

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?

PatelAlpesh:

I cannot even get to see the sheets in the excel file.  So really no column mapping to talk about...
techhealthDirectorCommented:
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
sSourceFile="c:\BDE\BDE.xls"
sTargetFile="c:\BDE\BDE_newExcel.xls"
Dim oExcel
Set oExcel = CreateObject("Excel.Application")
Dim oBook
Set oBook = oExcel.Workbooks.Open(sSourceFile)
oBook.SaveAs sTargetFile
oBook.Close False
oExcel.Quit

Open in new window

Moussa MokhtariEnterpreneurCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.