Excel Freezes When Opening Data Model Workbook: Fix
🔍 WiseChecker

Excel Freezes When Opening Data Model Workbook: Fix

Excel freezes or stops responding immediately when you try to open a workbook that contains a Data Model. This problem occurs because the Data Model loads all its tables and relationships into memory before the worksheet is visible, which can overwhelm available system resources. The freeze can last from several seconds to several minutes, or the application may need to be force-closed. This article explains why the Data Model causes this behavior and provides step-by-step fixes to prevent Excel from freezing when opening these workbooks.

Key Takeaways: Stop Excel Freezing on Data Model Workbooks

  • Disable Data Model auto-loading in File > Options > Data > Disable Power Pivot Data Model auto-loading: Prevents Excel from loading the Data Model on open, but keeps data connections intact.
  • Use Excel Safe Mode (hold Ctrl while opening Excel): Bypasses add-ins and the Data Model cache, allowing access to the workbook for editing.
  • Increase virtual memory in Windows System Properties > Advanced > Performance > Settings > Advanced > Virtual memory: Gives Excel more memory headroom to handle large Data Models without freezing.

ADVERTISEMENT

Why the Data Model Causes Excel to Freeze on Open

When a workbook contains a Data Model, Excel stores all imported tables, relationships, and calculated columns inside a compressed in-memory database. On opening the file, Excel must decompress and load this entire database into RAM before it can display any worksheet. If the Data Model is large — for example, containing millions of rows or dozens of linked tables — the loading process can consume 2 GB or more of memory. On systems with 8 GB or less of RAM, this often pushes memory usage to 100 percent, causing Excel to appear frozen. The freeze is not a crash; it is the system struggling to allocate memory while Excel waits for the Data Model to finish loading. Background add-ins like Power Pivot or third-party connectors can also delay the process further.

Steps to Fix Excel Freezing When Opening a Data Model Workbook

  1. Disable Data Model Auto-Loading in Excel Options
    Open Excel without the problematic workbook. Go to File > Options > Data. Under the section “Data Model options,” clear the checkbox labeled “Disable Power Pivot Data Model auto-loading.” Actually, the correct setting is: check the box that reads “Disable automatic loading of the Data Model.” This stops Excel from loading the Data Model when you open a workbook. The workbook will open with only the standard worksheets visible. You can later manually load the Data Model by clicking Data > Queries & Connections > Data Model.
  2. Open Excel in Safe Mode to Bypass Add-Ins
    Press and hold the Ctrl key, then double-click the Excel shortcut. When the dialog appears, click Yes to confirm Safe Mode. In Safe Mode, Excel disables all add-ins including Power Pivot, which controls the Data Model. The workbook should open quickly. Once open, go to File > Options > Add-Ins. At the bottom, set the Manage dropdown to COM Add-ins and click Go. Uncheck “Microsoft Power Pivot for Excel” and click OK. Restart Excel normally. The workbook will now open without loading the Data Model.
  3. Increase System Virtual Memory
    Right-click the Start button and select System. Click Advanced system settings. Under Performance, click Settings. Go to the Advanced tab and under Virtual memory, click Change. Uncheck “Automatically manage paging file size for all drives.” Select your system drive (usually C:). Choose “Custom size” and set Initial size to 1.5 times your RAM, and Maximum size to 3 times your RAM. For example, on a system with 8 GB RAM, set Initial size to 12288 MB and Maximum size to 24576 MB. Click Set, then OK, and restart your computer.
  4. Repair the Workbook Using the Power Pivot Add-In
    Open Excel in Safe Mode as described in step 2. Go to the Power Pivot tab (if visible) and click Manage. In the Power Pivot window, click the Design tab and then click “Check for Issues” or “Validate Relationships.” This scans for broken links or corrupt table metadata that may cause Excel to hang. If errors are found, delete and re-import the problematic table. Save the workbook under a new name.
  5. Convert the Data Model to Standard Tables
    If the Data Model is not needed for PivotTables or Power Pivot, convert it to standard Excel tables. Open the workbook in Safe Mode. On the Data tab, click Queries & Connections. In the Queries pane, right-click each query and select “Load To.” Choose “Table” and “New worksheet.” This loads the data into regular tables that do not use the Data Model. Save the workbook. Delete the original Data Model by going to the Power Pivot window, selecting each table, and pressing Delete.

ADVERTISEMENT

If Excel Still Freezes After the Main Fix

Excel freezes even with auto-loading disabled

If the freeze persists, the issue may be a corrupt add-in or a damaged workbook file. Run Excel’s built-in repair tool: open Control Panel > Programs > Programs and Features. Right-click Microsoft 365 (or Office) and select Change. Choose Quick Repair first. If that does not resolve the freeze, run Online Repair. This reinstalls all Office components and can fix registry issues that cause Data Model loading to hang.

Data Model workbook opens but then freezes when refreshing

This indicates the Data Model is too large for your system’s memory. Reduce the model size by removing unused columns from queries. In Power Query (Data > Get Data > Launch Power Query Editor), select each query and remove columns that are not used in PivotTables or relationships. After cleaning, load only the necessary tables into the Data Model. Alternatively, use Power Pivot’s “Table Preview” to filter rows before importing.

Excel crashes or shows “Not Responding” when connecting to external data sources

External data sources like SQL Server or Access can cause Excel to freeze if the connection is slow or the query returns too much data. Open the workbook in Safe Mode. Go to Data > Queries & Connections, right-click the connection, and select Properties. On the Definition tab, reduce the command text to return fewer rows, or add a WHERE clause. For SQL Server connections, set “Command Timeout” to 0 (no limit) to prevent premature disconnection.

Auto-Loading Disabled vs Safe Mode: Key Differences

Item Auto-Loading Disabled Safe Mode
Description Stops Excel from loading the Data Model when opening a workbook Opens Excel without any add-ins or customizations
Effect on Data Model Data Model is not loaded but remains in the file Data Model is loaded only if Power Pivot add-in is disabled
Effect on other add-ins Other add-ins still load normally All add-ins are disabled
Persistence Setting remains after restart Only active for the current session
Best for Users who need to open the workbook regularly without the Data Model Diagnosing whether an add-in causes the freeze

You can now open Data Model workbooks without Excel freezing by disabling auto-loading or using Safe Mode. Next, reduce the size of your Data Model by removing unused columns and limiting imported rows. For ongoing performance, set your virtual memory to at least 1.5 times your physical RAM to give Excel more headroom.

ADVERTISEMENT