Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am developing a SSIS package in which i will have reading data from excel file(.xls) as my first component. I am well aware that this is just a simple one two steps but i am getting errors "Microsoft Jet Database Engine", "External table is not in the expected format". I have tried various ways to so far to no avail. Below is my excel connection manager setup:

Provider=Microsoft.JET.OLEDB.4.0;Data Source=somePathHere\data.xls;Extended Properties="EXCEL 8.0;HDR=NO";


Whenever i tried to preview my records, the error will prompt out. I have MS Excel 2010 installed in my PC.

What I have tried:

1. Change excel connection manager into
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=somePathHere\data.xls;Extended Properties="EXCEL 12.0;HDR=NO";
but error is still the same except for JET has become Access.

2. Add single quote in "Extended Properties" as suggested online but to no avail.
3. Reinstall Access 2010 Distributional package but problem still persist.
4. Overwrite the .xls into .xlsx successfully solving the problem but due to some limitation i am not allowed to do that.
Posted
Comments
Richard MacCutchan 15-May-18 4:58am    
What table is the message referring to, and where does the error occur?
Jamie888 15-May-18 5:02am    
Sir, it did not say which table but i believe it is referring to excel sheet. The error will prompt every time i click Preview button in the Excel Source component in SSIS.
Richard MacCutchan 15-May-18 5:13am    
It sounds like the Excel file is not actually .xls. If you say that converting it to .xlsx fixed the problem than that must be the answer.
Jamie888 15-May-18 5:18am    
Really appreciate your input sir but i doubt it because i have double check the data.xls(right-click properties) and indeed it is in .xls format.
Jamie888 15-May-18 5:23am    
Sir, I have done a further testing by creating another .xls file and indeed it can be read. I doubt whether is it due to the original .xls file is in protected mode?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900