Excel Data Model Error: Causes and Fixes

Errors & fixes · Updated November 2, 2026

Excel Data Model Error: Causes and Fixes

An Excel Data Model error usually means Excel cannot create, refresh, or read the workbook’s model, which stores related tables for PivotTables and analysis. First identify when the message appears—while opening the file, refreshing data, or inserting a PivotTable—then check the source connection and model before attempting a rebuild.

What an Excel Data Model error means

The Data Model is a workbook component that can hold tables and relationships between them. Excel uses it to analyze data from multiple tables together, often through a PivotTable. It is not the same as a worksheet formula or an ordinary PivotTable cache, so an error involving the model may affect several reports at once.

The wording varies. A message may say that Excel cannot load or access the model, that the model is missing or damaged, or that a refresh failed. Sometimes there is no explicit model message: a PivotTable may be unavailable, show old results, or fail to connect to a table. The timing is useful evidence. An error on opening points toward workbook compatibility or file damage; an error during refresh more often points toward a source, credentials, or changed data structure.

There is no single fix for every message. Do not delete queries, relationships, or the Data Model just because a PivotTable looks wrong. Start with a copy of the workbook and narrow down which operation fails.

How the Data Model works

In Excel for Microsoft 365 on Windows, data can enter the model from Excel tables, Power Query, or other supported data connections. The model stores and compresses data, then uses relationships to connect tables for analysis. For example, a Sales table can contain transaction rows and a Products table can hold one row per product. A relationship between their product identifiers lets a PivotTable summarize sales by product category without repeating category details on every sales row.

Power Query and the Data Model have related but distinct jobs. Power Query connects to sources, shapes data, and loads results. The Data Model stores loaded tables and their relationships. A query can refresh successfully but fail to load into the model, or a model refresh can fail because a source is unavailable. A worksheet table can also refresh without being loaded into the model.

To inspect the model on Windows, look for the Power Pivot tab and choose Power Pivot > Manage. If the tab is absent, Power Pivot may not be available with the Excel license or may not be enabled. Check File > Options > Add-ins; at the bottom, select COM Add-ins in the Manage box and choose Go, then see whether Microsoft Power Pivot for Excel is listed and enabled. Availability varies by Excel edition and licensing. Excel for Mac and Excel for the web do not provide the same Power Pivot model-authoring tools; use Excel for Windows when you need to inspect or repair a model.

Diagnose when the error appears

Make a separate copy before troubleshooting, especially if the workbook contains important measures or carefully built relationships. Then record the exact error text and the action that triggers it. Try these checks in order:

  • Open the copy in desktop Excel for Windows. If the workbook was edited in another spreadsheet program or opened in Excel for the web or Mac, test it in the Windows desktop version that supports the model features it uses.
  • Check whether the problem affects one file or many. If several model-enabled workbooks fail, update or restart Excel and check for an Office issue. If only one workbook fails, focus on that file and its sources.
  • Test a normal worksheet action. Can the workbook open, save, and show its source tables? If those work but refreshing does not, investigate connections and queries before assuming the model is damaged.
  • Check whether a new PivotTable can use the model. In the Insert PivotTable dialog, look for the option to use this workbook’s Data Model. If that option is missing or disabled, verify that the file contains a model and that you are using compatible desktop Excel.
  • Look at connection and query status. Open Data > Queries & Connections and inspect failed queries or connections. A source error can look like a model problem because the model cannot receive updated data.

Also check whether the file is read-only, stored in a location where you lack permission to save changes, or being edited simultaneously by multiple people. These conditions do not prove the model is broken, but they can prevent a repair or refresh from being saved.

Fix refresh and source-connection errors

If the failure occurs during refresh, confirm that the original source still exists and is reachable. A renamed file, moved folder, changed database server, expired sign-in, revoked permission, or unavailable network drive can break a connection. Open Data > Queries & Connections, right-click the relevant query, and choose Edit to inspect its steps and source. For an external connection, check its connection properties and credentials using the controls available for that source.

Next, check whether the source structure changed. A query may expect a column named ProductID, for example, but the source now calls it Product Code. A removed or renamed column can break later query steps or prevent a table from loading as expected. Restore the expected column name at the source, or update the affected query steps deliberately. Avoid changing the model’s key columns without also checking relationships and reports that depend on them.

Try refreshing one query or connection at a time rather than repeatedly choosing Data > Refresh All. This helps identify the failing source. If the query is meant to feed the model, check its load destination: right-click the query in the Queries & Connections pane, choose Load To when available, and confirm that adding the data to the Data Model is selected. The exact options depend on the query and workbook.

If credentials are the issue, sign in with an account that has permission to read the source; do not put passwords into workbook text or share them with people who should not have access. If the source is a local file, verify the path on the computer doing the refresh. A path that works on the author’s computer may not work for a colleague.

Check relationships and table structure

A model can load but still produce incorrect or incomplete PivotTable results when its relationships no longer match the data. A common design is a one-to-many relationship from a lookup table, such as Products, to a transaction table, such as Sales. The lookup side should generally contain unique key values, and the connected columns should have compatible data types. Blank keys, duplicated lookup values, or identifiers stored as text in one table and numbers in another can cause relationship creation or reporting problems.

In Power Pivot > Manage, use the model’s diagram view or relationship tools to inspect how tables connect. Confirm that the intended columns are linked and that a recent source change has not replaced, renamed, or altered a key. If Excel reports that a relationship cannot be created, check for duplicate values on the lookup side and mismatched data types before changing the model. Do not remove a relationship merely to silence an error: a PivotTable may then return totals that combine unrelated records.

Consider a simple example: Sales contains 500 transaction rows, while Products contains one row per product. If Products has the same product identifier twice, Excel cannot treat that column as the unique lookup side of a conventional one-to-many relationship. Resolve the duplicate in the source or create a properly deduplicated lookup table, then verify the relationship and refresh the relevant reports.

When a workbook may be damaged

If Excel reports that the model is missing or damaged even though its sources are available, first preserve the original file. Save a copy under a new name, then close and reopen that copy in desktop Excel. If the workbook is stored in OneDrive or SharePoint, check its version history for an earlier version that opens correctly. Restoring a prior version can recover the model, but it may discard later edits, so compare versions before replacing the current file.

You can also try opening the copy with Excel’s file-repair option. In Excel for Windows, choose File > Open > Browse, select the workbook, open the arrow beside the Open button, and choose Open and Repair. Repair results are not guaranteed, and a repaired workbook may omit or alter content. Save the result as a new file and verify queries, relationships, measures, and PivotTables rather than assuming everything survived.

If repair does not work, recover from a known-good copy or rebuild the model from its source tables and queries. Rebuilding is a last resort: it can require recreating relationships, calculated measures, and PivotTables. Keep the original intact for comparison. If the workbook is business-critical, involve the file owner or IT support before replacing the model, especially if its sources contain restricted data.

Memory, workbook size, and performance

A refresh can fail or Excel can become unresponsive when a model is large or the computer has limited available memory. The model is held in memory while Excel processes data; closing other large workbooks and applications may help, but it will not fix a broken source or invalid relationship. A 64-bit installation can address more memory than 32-bit Excel, although available memory is still limited by the computer and other running programs.

For a large model, reduce unnecessary columns and rows at the source or in Power Query, and avoid loading intermediate queries into the model unless reports need them. Check whether repeated copies of the same data are being loaded. If the workbook consistently exceeds what the team’s machines can handle, consider whether a database or another managed data platform is a better source for analysis. Do not remove data needed for audit or reporting merely to make the file smaller.

Prevent the error from returning

Model reliability improves when the workbook has stable sources and a clear owner. Use consistent table and column names, avoid moving source files without updating connections, and document which queries feed the model. Before making structural changes, save a dated backup and test the refresh on a copy. For shared workbooks, make sure users know which desktop Excel version and permissions are required.

After a successful repair or refresh, validate the outcome rather than relying only on the absence of an error. Check a few known totals, confirm that key categories appear in PivotTables, and verify that relationships still connect the intended tables. If a measure or report changes unexpectedly, compare the result with a trusted source or earlier workbook version before distributing it.

Frequently Asked Questions

Why does Excel say the Data Model is missing?
Excel may be unable to read the model in that file, or the workbook may have been changed or saved by an application that does not preserve all Excel model features. Test a backup in desktop Excel for Windows, check version history, and avoid overwriting the original until you know whether the model can be recovered.

Why does Refresh All fail for an Excel Data Model?
Refresh All can fail because a source file moved, credentials expired, permissions changed, a server is unavailable, or a query expects columns that have since changed. Inspect individual queries under Data > Queries & Connections to identify which connection fails.

Can I fix a Data Model error in Excel for Mac?
Excel for Mac does not offer the same Power Pivot model-authoring and repair tools as Excel for Windows. You may be able to work with parts of a workbook, but use desktop Excel for Windows to inspect Power Pivot relationships and model features.

Will Open and Repair restore my Data Model?
It may repair a workbook, but it is not a guaranteed model-recovery tool. Work on a copy, save the repaired result under a different name, and check its queries, relationships, measures, and reports against a known-good version.

Does deleting a query remove the Data Model?
Deleting a query can remove a source or loaded table that the model depends on, and it may affect relationships and reports. Diagnose the failure first and preserve a copy before deleting or rebuilding any query.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Errors & fixes

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.