Forum Discussion
User getting An operation that uses the database driver could not be completed Message
Hi,
We have a user that has created an excel model linked to Power BI online dataset sources and is getting the message that says when trying to refresh starting last week:
"An operation that uses the database driver could not be completed Message. If the driver is a Microsoft drive, make sure the drivel file isn't damage, and if it is, reinstall the driver by reinstalling Microsoft Query. For other drivers, contact your database administrator or driver vendor".
I and other users have been able to connect to the files shared and it seems like it's only isolated to this one user and file but our IT team hasn't been able to figure it out either.
We've tried below but nothing seems to work and the user also gets a sign in loop, after sign in it requests another additional.
-Downloaded PowerBI Query for Excel
-Downloaded Microsoft Access Database Engine 2016 Redistributable
-Office repair
-Verified the connection and connection string in the file
-Tested with other users
-Verfied no access to the dataset changes
-Followed the support recommendations from: https://community.fabric.microsoft.com/t5/Power-Query/An-operation-that-uses-the-database-driver-could-not-be/m-p/4369046
Does anyone have any other reccomendations or ways to fix?
The user is on a newer excel version since the file was created but other users tester in the newer excel with no issues. We're hoping they don't have to recreated the file or links to the service because it has a lot of pivots and sheets connected to Power BI online datasets along with many other formulas in the model.
Thanks
Hi chudson
The error “An operation that uses the database driver could not be completed” when refreshing a Power BI-connected Excel workbook (especially one linked to Power BI datasets online) almost always means something has broken in the user’s Power BI connector chain / authentication cache rather than a true OLEDB driver problem.What’s actually happening
When Excel connects to a Power BI dataset, it uses the Power BI XMLA / Analysis Services endpoint through the MSOLAP / Power BI connector.
The “database driver” mentioned in the error is MSOLAP (not Microsoft Query, despite the message wording).
If one of these things goes wrong, you get the message you saw:-
Corrupt local Power BI connection cache
-
Conflicting MSOLAP provider versions
-
Broken Power BI credentials token (causes endless sign-in loop)
Excel version mismatch with Power BI add-ins (post-update regression)
Step-by-Step Fix Checklist
1. Clear Power BI and Office credential cache
Ask the affected user to:
-
Close Excel.
-
Open Windows Credential Manager → Windows Credentials.
-
Delete any entries starting with:
-
MicrosoftOffice16_Data:ADAL:, -
Microsoft.PowerBI, or -
Analysis Services.
-
-
Then reopen Excel and reconnect — it’ll prompt for fresh sign-in.
This alone fixes most sign-in loops and “database driver” errors.
Clear Excel’s connection cache
C:\Users\<username>\AppData\Local\Microsoft\Power BI Desktop\AnalysisServicesWorkspaces\
and
C:\Users\<username>\AppData\Local\Microsoft\Office\16.0\Power BI Desktop CacheDelete the contents of those folders (Excel and Power BI will rebuild them).
Also check:
%localappdata%\Microsoft\Office\16.0\PowerBI\3. Re-register the MSOLAP provider
Even if it’s installed, re-registering helps if the registry binding broke after Office updates.
Run (as admin, in CMD):
cd "C:\Program Files\Microsoft Analysis Services\AS OLEDB\190"
regsvr32 msolap190.dllAdjust
190to your version folder (180,191, etc.) depending on your Excel/Office build.Then reboot Excel.
Reset Power BI connection metadata in Excel
In Excel:
-
Go to Data → Get Data → Data Source Settings → Global Permissions
-
Find any entries for
app.powerbi.comor your Power BI dataset URL -
Remove them → OK → Reconnect from scratch
When reconnecting, choose “Microsoft account” as the auth method.
Verify matching MSOLAP provider versions
On working and non-working machines, check:
-
In Excel → Data → Get Data → Data Source Settings → Power BI
Or in Windows: “Add/Remove Programs” → look for Microsoft Analysis Services OLE DB Provider for Microsoft SQL Server (MSOLAP).
If the affected user has an older or newer build than others, uninstall and reinstall from Microsoft’s site (latest: MSOLAP.8 or MSOLAP.190).Check Excel updates
Sometimes a specific Office update breaks the Power BI connector temporarily.
-
Make sure Excel is on a Current or Monthly Enterprise Channel version that matches other working users.
If the issue started “last week,” it could coincide with a new Office build — try rolling back one version to test.
Last resort: rebuild the connection (not the whole workbook)
You don’t need to rebuild all pivots.
You can:-
Save a copy of the workbook.
-
In Data → Queries & Connections, delete the broken Power BI dataset connection.
-
Re-add the connection via Get Data → Power BI Datasets.
-
Repoint existing PivotTables to the new connection (Data → Change Data Source → Choose new dataset).
This keeps your pivot structures and formulas intact.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!
-
3 Replies
- johnbasha33Super User
Hi chudson
The error “An operation that uses the database driver could not be completed” when refreshing a Power BI-connected Excel workbook (especially one linked to Power BI datasets online) almost always means something has broken in the user’s Power BI connector chain / authentication cache rather than a true OLEDB driver problem.What’s actually happening
When Excel connects to a Power BI dataset, it uses the Power BI XMLA / Analysis Services endpoint through the MSOLAP / Power BI connector.
The “database driver” mentioned in the error is MSOLAP (not Microsoft Query, despite the message wording).
If one of these things goes wrong, you get the message you saw:-
Corrupt local Power BI connection cache
-
Conflicting MSOLAP provider versions
-
Broken Power BI credentials token (causes endless sign-in loop)
Excel version mismatch with Power BI add-ins (post-update regression)
Step-by-Step Fix Checklist
1. Clear Power BI and Office credential cache
Ask the affected user to:
-
Close Excel.
-
Open Windows Credential Manager → Windows Credentials.
-
Delete any entries starting with:
-
MicrosoftOffice16_Data:ADAL:, -
Microsoft.PowerBI, or -
Analysis Services.
-
-
Then reopen Excel and reconnect — it’ll prompt for fresh sign-in.
This alone fixes most sign-in loops and “database driver” errors.
Clear Excel’s connection cache
C:\Users\<username>\AppData\Local\Microsoft\Power BI Desktop\AnalysisServicesWorkspaces\
and
C:\Users\<username>\AppData\Local\Microsoft\Office\16.0\Power BI Desktop CacheDelete the contents of those folders (Excel and Power BI will rebuild them).
Also check:
%localappdata%\Microsoft\Office\16.0\PowerBI\3. Re-register the MSOLAP provider
Even if it’s installed, re-registering helps if the registry binding broke after Office updates.
Run (as admin, in CMD):
cd "C:\Program Files\Microsoft Analysis Services\AS OLEDB\190"
regsvr32 msolap190.dllAdjust
190to your version folder (180,191, etc.) depending on your Excel/Office build.Then reboot Excel.
Reset Power BI connection metadata in Excel
In Excel:
-
Go to Data → Get Data → Data Source Settings → Global Permissions
-
Find any entries for
app.powerbi.comor your Power BI dataset URL -
Remove them → OK → Reconnect from scratch
When reconnecting, choose “Microsoft account” as the auth method.
Verify matching MSOLAP provider versions
On working and non-working machines, check:
-
In Excel → Data → Get Data → Data Source Settings → Power BI
Or in Windows: “Add/Remove Programs” → look for Microsoft Analysis Services OLE DB Provider for Microsoft SQL Server (MSOLAP).
If the affected user has an older or newer build than others, uninstall and reinstall from Microsoft’s site (latest: MSOLAP.8 or MSOLAP.190).Check Excel updates
Sometimes a specific Office update breaks the Power BI connector temporarily.
-
Make sure Excel is on a Current or Monthly Enterprise Channel version that matches other working users.
If the issue started “last week,” it could coincide with a new Office build — try rolling back one version to test.
Last resort: rebuild the connection (not the whole workbook)
You don’t need to rebuild all pivots.
You can:-
Save a copy of the workbook.
-
In Data → Queries & Connections, delete the broken Power BI dataset connection.
-
Re-add the connection via Get Data → Power BI Datasets.
-
Repoint existing PivotTables to the new connection (Data → Change Data Source → Choose new dataset).
This keeps your pivot structures and formulas intact.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!
-
- v-priyankataCommunity Support
Hi chudson
Thank you for reaching out to the Microsoft Fabric Forum Community.
johnbasha33 Thanks for the inputs
I hope the information provided by user was helpful. If you still have questions, please don't hesitate to reach out to the community.
- v-priyankataCommunity Support
Hi chudson
Hope everything’s going smoothly on your end. I wanted to check if the issue got sorted. if you have any other issues please reach community.