cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gyorgykovacs Regular Visitor
Regular Visitor

OLE DB or ODBC Error: [DataFormat.Error] External table is not in the expected format...

Hi All,

 

I have been using a pbix for monthly reporting. I add excel files on a monthly basis to a folder and combine them to generate the required figures and chart. Today I got the error message described in the title though until now everything worked fine. I tried to remove the new files and refresh but still it does not work.

I have been searching on the forum and on the web to fix the issue, found a few information and nothing worked - could you please suggest how I should fix this?Képkivágás.JPG

 

 

8 REPLIES 8
Moderator v-yuezhe-msft
Moderator

Re: OLE DB or ODBC Error: [DataFormat.Error] External table is not in the expected format...

@gyorgykovacs,

How about you re-connect to the folder in a new Power BI Desktop file?

Also please directly open the Excel file, check if you get restricted Access message, and check if the sheets are locked. Based on my research, the above error could occur due to the two aspects.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
gyorgykovacs Regular Visitor
Regular Visitor

Re: OLE DB or ODBC Error: [DataFormat.Error] External table is not in the expected format...

Thanks for the answer. None of the files are restricted and none of them have locked sheets.

I tried to re-load the folder in a new Power BI Desktop file (on another laptop) and had the following error:

 

"Failed to save modifications to the server. Error returned: OLE DB or ODBC error: [DataSource.NotFound] Excel Workbook: The 'Microsoft.ACE.OLEFB.12.0' provider is not registered on the local machine. The 64 bit Database Engine OLEDB provider may be required to read ...xlsx. To download the client software... etc."

 

I will get it installed today with our IT department and see if that helps, however I have it on my home pc and the file does not work there either.

Moderator v-yuezhe-msft
Moderator

Re: OLE DB or ODBC Error: [DataFormat.Error] External table is not in the expected format...

@gyorgykovacs,

Do you use 64 bit or 32 bit Power BI Desktop? Ensure that you install the correct version of Database Engine OLEDB provider, and the version matches Power BI Desktop.

In your scenario, uninstall Database Engine OLEDB provider, reboot machine,re-install Database Engine OLEDB provider. then check if the error still occurs.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
gyorgykovacs Regular Visitor
Regular Visitor

Re: OLE DB or ODBC Error: [DataFormat.Error] External table is not in the expected format...

I am trying to solve this problem on 2 computers at the same time (as I am waiting for IT to resolve my ticket on my corporate laptop.)

 

Computer (1) (home PC) I have x64 Office, x64 Power BI and x64 OLEDB provider. Still, I receive the error that the external table is not in the expected format.

I re-installed as you suggested and it did not worked.

 

Computer (2) (corporate laptop) I have x32 Office, x64 Power BI and no OLEDB provider (I guess 32 bit by default - waiting for IT to install it). I receive the error message to install the x64 OLEDB provider, but I guess I won't be able to do that as there is x64 Office.

 

Data refreshing and Power BI in general worked perfectly on both machines with the current setup until the day before yesterday for months.

Moderator v-yuezhe-msft
Moderator

Re: OLE DB or ODBC Error: [DataFormat.Error] External table is not in the expected format...

@gyorgykovacs,

For the first computer, have you rebooted the machine?

For the second computer, please install 32 bit Power BI Desktop instead and install 32 bit ACE provider, then check if you get errors.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Snoggi New Member
New Member

Re: OLE DB or ODBC Error: [DataFormat.Error] External table is not in the expected format...

Hi guys,

 

any solution to this problem already?

 

I got the same error and all included files are actually in the same format already.

Highlighted
gyorgykovacs Regular Visitor
Regular Visitor

Re: OLE DB or ODBC Error: [DataFormat.Error] External table is not in the expected format...

Hi Snoggi,

 

2 things helped me after all which I think you could try:

 

1) Check if you surely not have any hidden files in a folder which you pull in to your model as a datasource. Damaged xlsxes and any hidden files can mass up your dataflow. (I had those when I tried to save a file on our shared drive and had some network error in the meantime.) Easiest if you check in your query editor the list of files so you can easily spot whether there is something that does not make sense.

 

2) Delete the connections in your data model between your different tables, and re-make them. 

BSimonnet New Member
New Member

Re: OLE DB or ODBC Error: [DataFormat.Error] External table is not in the expected format...

Hello,

 

I have the same issue. re-install Office 365 but don't fix the PB. No hidden File. I recreate Excel fils. 

Any ideas ?

I am workind under the latest Windows 10 and the latest Office 365 on e VM Machine ( MAC) all softwares are up to date.

 

Bruno