Excel errors

#GETTING_DATA in Excel: what it means and how to fix it

Why CUBEVALUE and other cube functions show #GETTING_DATA, when to wait, and how to fix slow models, broken OLAP connections and manual calculation.

#GETTING_DATA is not really an error. It is a placeholder that Excel's cube functions, such as CUBEVALUE, CUBEMEMBER and CUBESET, show while they fetch results from a data source: the workbook's own Data Model (Power Pivot) or an external OLAP cube such as SQL Server Analysis Services. As soon as the answer arrives, the cell updates to the value. Note the spelling: it has no exclamation mark, unlike most error values. You only need to act when the placeholder never goes away, which means the cube formulas cannot complete their request. The classic errors are covered in Formula errors: what each one means and how to fix it.

What #GETTING_DATA means

Cube functions do not calculate in the grid like SUMIFS. Each one sends a query to the data model or server and waits for the answer, and Excel lets you keep working in the meantime. While a query is in flight the cell shows #GETTING_DATA. Formulas that use the cell, such as a total of several CUBEVALUE cells, show it too until all parts are back. ERROR.TYPE returns 8 for it, and ISERROR treats it as an error.

Cause 1: a cube formula is waiting for the Data Model

Below, the table on the left has been loaded into the Data Model as a table called Sales (via Insert › PivotTable › Add this data to the Data Model, or Power Pivot). The formula asks the model for the total Amount for the region in D2.

E2fx=CUBEVALUE("ThisWorkbookDataModel", "[Measures].[Sum of Amount]", "[Sales].[Region].&["&D2&"]")
ABCDE
1RegionAmountRegionTotal
2East5200East#GETTING_DATA
3West3100West
4East7150

Shown for a moment while the Data Model answers the query.

Result: #GETTING_DATA

E2fx=CUBEVALUE("ThisWorkbookDataModel", "[Measures].[Sum of Amount]", "[Sales].[Region].&["&D2&"]")
ABCDE
1RegionAmountRegionTotal
2East5200East12350
3West3100West
4East7150

Once retrieved: East is 5,200 + 7,150 = 12,350. The measure Sum of Amount exists once a pivot table has summed Amount, or you create it as a measure.

Result: 12350

What to do. Nothing, as long as it resolves. With a small model this takes a fraction of a second; with millions of rows or a remote server it can take noticeably longer.

Cause 2: the server is slow or the model is large

Reports built with PivotTable Analyze › OLAP Tools › Convert to Formulas can contain hundreds of cube formulas, each sending its own query. On a busy server, or with a heavy model, the whole sheet may sit on #GETTING_DATA for a while. Fixes: reduce the number of cube cells (one CUBESET with CUBERANKEDMEMBER can replace many hand-written members), keep measures simple, remove unused columns from the Data Model so it is smaller, and refresh at quiet times.

Cause 3: the connection is broken or needs credentials

If the placeholder never goes away, or turns into #N/A, #NAME? or #VALUE!, the cube functions cannot get an answer. Typical reasons: the external OLAP server is offline or renamed, you are not on the company network or VPN, your credentials have expired, or the connection name in the first argument is wrong.

  • Check the connection in Data › Queries & Connections, right-click it and choose Properties to see the server and database.
  • Use Data › Refresh All and enter credentials if asked.
  • For the workbook's own model the connection name is always "ThisWorkbookDataModel"; typing it slightly differently breaks every formula.
  • In Excel for the web, connections to external OLAP servers may not refresh at all; open the file in the desktop app.

Cause 4: calculation is set to manual

With Formulas › Calculation Options › Manual, cube formulas that were waiting when you switched may keep showing #GETTING_DATA, or old values, until the next calculation. Press F9 or use Data › Refresh All. If you work with large models in manual mode on purpose, make a habit of refreshing before you read or share the numbers.

How to find every #GETTING_DATA

  1. Go To Special. Press F5 or Ctrl+G, click Special, choose Formulas with only Errors ticked. Every formula showing an error is selected, including this one.
  2. Find All. Ctrl+F (Cmd+F), search for #GETTING_DATA with Look in: Values and Within: Workbook, then Find All to get a clickable list.
  3. Error Checking. Formulas › Error Checking steps through each error cell; the warning icon beside a cell also shows Excel's short explanation of the specific reason, which for the newer errors is often more precise than the code itself.
  4. Trace Error (in the Error Checking drop-down) draws arrows back to the cell where the error first appeared, which matters because every formula that refers to the cell shows the same error.
  5. Watch the status bar for messages about retrieving data. When it is quiet and cells still show #GETTING_DATA, refresh the connection (Cause 3).

When you should NOT hide #GETTING_DATA

Do not wrap cube formulas in IFERROR to make the placeholder disappear. While data is loading, IFERROR would display your replacement, so a report printed or exported at that moment shows zeros or blanks that look real. It also hides a broken connection that leaves the placeholder there permanently. If you need a cleaner look, let the sheet finish calculating before sharing it, and fix connections that never complete.

Version notes

  • #GETTING_DATA has existed since the cube functions arrived in Excel 2007 for Windows. It is one of the eight classic error values, with ERROR.TYPE number 8.
  • Cube functions against the workbook's Data Model work in Microsoft 365, Excel 2013 and later for Windows, and Excel for Mac 2016 and later; external OLAP connections are mostly a Windows desktop feature.
  • Other spreadsheet programs do not have cube functions; a file opened there shows the last saved values or errors.

More excel errors