File Cannot Open

How to Open an Apple Health XML Export in Excel and Fix Out of Memory Errors

Nimra MalikNimra Malik Oct 8, 2026 872 views

Question details

The user is trying to open an Apple Health data export in XML format using Excel but is prevented by a memory limitation error.

How to Open an Apple Health XML Export in Excel and Fix Out of Memory Errors
Product
Microsoft Excel
Device & OS
Windows 11
Scenario
Attempting to import a comprehensive Apple Health data export (XML format) into a spreadsheet to analyze personal health and fitness data.
Observed behavior
Microsoft Excel fails to load the file, displaying an error message stating: 'Unable to connect. We encountered an error while trying to connect. Details: Evaluation ran out of memory and cannot continue.'
Before you start

Before attempting to open the Apple Health XML file, check the file size and ensure your computer has sufficient available RAM, as comprehensive health data exports can be exceptionally large and memory-intensive to parse.

Solution 1Recommended

Import XML Data Using Power Query

Use Excel's built-in 'Get Data' feature to cleanly import and transform the XML data structure into a spreadsheet format.

The Power Query import method is generally more stable than opening the file directly, as it allows Excel to interpret the XML schema and filter the data before fully loading it into a worksheet.

1
Open the Get Data Menu

Launch Microsoft Excel, open a blank workbook, and navigate to the 'Data' tab on the top ribbon.

2
Select the XML Data Source

Click on 'Get Data' located on the far left, then select 'From File' followed by 'From XML'.

3
Import the Apple Health Export

Browse your Windows 11 file directory, select the 'export.xml' file downloaded from Apple Health, and click 'Import'. Follow the Power Query Navigator prompts to select and load the specific health metrics you want to analyze.

Import XML Data Using Power Query
File Size Limitation: If you still encounter the 'evaluation ran out of memory' error during this process, your export file contains too many data points (often millions) for standard Excel import methods.
Free Microsoft Office alternative

Edit and Manage Large Datasets Effortlessly with WPS Office

If Microsoft Excel continues to struggle with memory limits when handling large Apple Health exports, consider WPS Office as a lightweight, fast, and free alternative. It provides excellent performance for everyday data analysis without heavily taxing your computer's resources.

  1. 1. Download and Install: Get the free WPS Office suite from the official website and install it on your Windows PC.
  2. 2. Open WPS Spreadsheet: Launch WPS Spreadsheet, which offers an interface highly familiar to Excel users.
  3. 3. Load Your Data: Use the standard 'Open' dialog to select your converted CSV or XML health data files and start analyzing your metrics instantly.
Fully compatible with Microsoft Excel formats including .xlsx, .csv, and standard XML data.Lightweight installation with optimized memory consumption for smoother file handling.Completely free to use with a familiar, easy-to-navigate interface.Seamless migration means you can open your existing spreadsheets without losing formatting.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel run out of memory when opening Apple Health XML?

Apple Health exports contain millions of individual data points spanning years, such as step counts and heart rates recorded every few minutes. Excel attempts to load the entire complex XML tree structure (DOM) into memory at once during the import process, which can quickly exhaust system RAM and trigger the 'evaluation ran out of memory' error.

Can I filter the Apple Health XML before Excel crashes?

If the file is moderately sized, you can use the Power Query Navigator (Data > Get Data > From XML) to select only specific tables or columns before clicking 'Load'. However, if the file is extremely large (e.g., over 500MB), Excel's Power Query evaluation process may still run out of memory before the filtering options even appear.

How do I find specific health metrics like step count in the data?

Once you successfully import the data or convert it to CSV format, look for the main 'Record' rows. You can then apply a filter to the 'type' column and select 'HKQuantityTypeIdentifierStepCount' to view and graph your daily step data.