Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Power BI "The received uncompressed data on the gateway client has exceeded the limit": the 10 GB refresh limit

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

A Power BI refresh that fails with the gateway error "The received uncompressed data on the gateway client has exceeded the limit" has passed a size limit. Microsoft's gateway troubleshooting page lists that error and says "The limitation is 10 GB of uncompressed data per table segment during refresh." The first fixes are to load fewer columns and less history. Microsoft also lists DirectQuery for extremely large fact tables.

What the error means

Microsoft's gateway troubleshooting page lists this message under semantic models. The refresh pulls data from an on-premises source through the gateway into an imported semantic model, and the limit applies to the data before Power BI compresses it. That is why a model that looks small on disk can still fail. Microsoft's data reduction page says it is reasonable to expect 10 GB of source data to compress to about 1 GB. Our own reading: the ratio depends on the data, so a text-heavy table compresses less.

Two Microsoft statements about 10 GB sit on different pages:

  • The gateway page gives 10 GB "per table segment during refresh".
  • The refresh scenarios page says that "in shared capacity, the service places a limit of 10 GB on the amount of uncompressed data that is processed during refresh" and that "Semantic models in Power BI Premium aren't subject to these limits."

Our own reading: treat them as two separate statements and check both. The refresh activity page, reached from the Monitoring hub, the semantic model refresh settings or the semantic model detail page, shows the capacity and the gateway used by a refresh.

The same refresh scenarios page gives other limits that fail a refresh in other ways: a 1 GB maximum for imported semantic models, a two-hour scheduled refresh time-out (five hours in Premium and Fabric workspaces), and a rule that four failed scheduled refreshes in a row disable the schedule.

Likely causes

Our own reading: the "How to confirm" column applies Microsoft's profiling page to the causes Microsoft lists.

Cause What you see How to confirm
Long text values repeated on many rows (descriptions, URLs, free text) The same table fails at each refresh Power Query column distribution shows long values with many repeats
Unused text columns with nearly unique values (GUIDs, comments, notes) Same message, table keeps growing Column profile shows a distinct count close to the row count, and no report uses the column
Years of history loaded into one fact table Refresh worked until the table grew Row count against the date range in the source
A very wide table with many columns Failure even though row counts look modest Count the columns in Power Query
A single row over about 4 MB A different message: "There is not enough space for this row" Gateway page: a single imported row exceeds approximately 4 MB

Prove the cause before changing anything

All of these steps only read.

  1. Read the failure. In the Power BI service, open the refresh history link in the semantic model settings, then select Show beside the failed attempt. Power BI makes several attempts after a failure, and Show gives more detail on each. A good match is the message in the title. If the message is "There is not enough space for this row", the cause is a single oversized row, not table volume.
  2. Note the capacity and gateway. Open the refresh activity page for that refresh and write down the capacity and gateway shown. If the capacity is Premium, the refresh scenarios page says such models "aren't subject to these limits", so re-read the message for another cause.
  3. Find the heavy table. In Power BI Desktop, open Power Query Editor, go to the View tab and switch on Column quality, Column distribution and Column profile. Microsoft's profiling page says Power Query profiles only the first 1,000 rows by default. Select the "Column profiling based on top 1000 rows" message in the lower-left corner to change it to the entire data set. Look for text columns whose distinct count is close to the row count, and for long values that repeat.
  4. Estimate the volume. Multiply rows by the average uncompressed bytes per row. Our own rule of thumb: add the widths of the columns in the source for one typical row.

Example (illustrative): at Example Pty Ltd, the gateway on gw01 refreshes a FactSales table from a SQL Server on app01. The table has 120,000,000 rows covering 60 months. Each row averages 400 bytes, of which a Notes column takes 250 bytes. The refresh carries 120,000,000 × 400 = 48,000,000,000 bytes, or 48 GB, far over 10 GB whichever way a gigabyte is counted. Nothing reads Notes. Removing it leaves 150 bytes per row, so 120,000,000 × 150 = 18 GB. Keeping the last 24 of 60 months leaves 120,000,000 × 24 ÷ 60 = 48,000,000 rows, so 48,000,000 × 150 = 7,200,000,000 bytes, or 7.2 GB. That is under 10 GB counted as 10,000,000,000 bytes or as 10,737,418,240 bytes. Our own reading: the example compares the whole table with 10 GB, a cautious choice, because the gateway page counts per table segment.

Fix

Microsoft's gateway page gives four options:

  • "Replace repeated long strings with surrogate keys."
  • "Remove unused high-cardinality text columns."
  • "Split very wide tables or filter historical partitions."
  • "Consider DirectQuery for extremely large fact tables."

Microsoft's data reduction page adds that numeric columns use value encoding while text uses hash encoding, so converting a text identifier that carries a fixed prefix into a whole number can shrink a large table. It also says to filter by time with Power Query parameters, for example relative to the refresh date, and not to load all available history unless reporting needs it.

First save the current state. Use the path of your own file; the paths in the blocks are the example's. Microsoft's copy page gives the syntax copy <source> <destination>.

copy "D:\reports\Sales.pbix" "D:\reports\Sales-copy-2026-12-04.pbix"

Then keep a copy of what is published. In the Power BI service, open the report, select File > Download this file and choose "A copy of the report and data". Microsoft's download page says the option is unavailable for a semantic model with incremental refresh enabled, with the message "This option isn't available because the data model has incremental refresh enabled." In that case your saved .pbix file is the only copy, so keep it.

Risk: Removing columns and history from the table and then publishing the changed model replaces the published semantic model in the workspace, and Refresh now starts another refresh through the gateway. Microsoft's publish page says renaming or deleting a column can break visuals that use it, and that a refresh starts as soon as you republish if a schedule is defined. A completed refresh cannot be undone: the data it loaded replaces what the model held, and the back-out below restores the file but not that data. The removed columns and rows are not loaded again until the saved file is restored and published.

Make the change:

  1. Open Sales.pbix in Power BI Desktop and open Power Query Editor.
  2. Remove the unused text columns found in step 3. Where a long text value repeats, keep it in a small separate table and load a numeric key in the big table.
  3. Add a time filter to the large table, using a parameter or a period relative to the refresh date.
  4. Apply the changes, then choose File > Publish > Publish to Power BI (or Publish on the Home ribbon) and select the same workspace. Confirm the replacement message.
  5. In the semantic model settings, select Refresh now.

Only if you need to back out, the next two steps put the saved file back and publish it again. The change you made is lost, and the table returns to the volume that fails.

Risk: Copying the saved file over Sales.pbix discards every edit made to it since the save. Use the paths of your own files; the block shows the example's.

copy "D:\reports\Sales-copy-2026-12-04.pbix" "D:\reports\Sales.pbix"

Risk: publishing the restored file replaces the semantic model in the workspace again and starts a refresh at once if a schedule is defined. Our own reading: that refresh fails again with the same message, and each failure counts toward the four in a row that disable a schedule.

Publish Sales.pbix to the same workspace, as in step 4.

Then open a report that used the removed columns and check that they are back.

On DirectQuery and capacity, Microsoft's data reduction page says setting large fact tables to DirectQuery storage mode can cut model size, often together with summarised data, and warns of security and performance implications. The refresh scenarios page says Premium models are not subject to the 10 GB limit; check the current page, because the data reduction page also says Microsoft is retiring the Power BI Premium per-capacity SKUs.

Confirm the fix

  1. In the refresh history, the refresh started after the change shows success, not the message in the title.
  2. Open each report page that used the table and check that the visuals using removed columns are gone or rebuilt.
  3. Compare the new row and column counts with your arithmetic. With the example numbers, expect about 48,000,000 rows and 150 bytes per row.

What to watch afterwards

  • Rows added per month times bytes per row. In the example, a 24-month window at 2,000,000 rows a month holds 7.2 GB. If the monthly rows double to 4,000,000, the window holds 4,000,000 × 24 = 96,000,000 rows, and 96,000,000 × 150 = 14,400,000,000 bytes, or 14.4 GB, which is over the limit again.
  • Scheduled refresh status. Power BI disables a scheduled refresh after four failures in a row, so one unfixed table silences the whole schedule.
  • New text columns in the source, especially free text.

Risks and limits

  • These commands have not been run or lab-tested.
  • The two 10 GB statements on Microsoft's pages describe different scopes. Treat the numbers as limits to stay well below, not targets.
  • Removing a column or filtering history removes data from the model. Reports and measures that use it can break.
  • A downloaded copy with data is unavailable for semantic models with incremental refresh, and downloads have size limits stated on the download page.
  • Limits and licensing change; check the current pages before you plan around a figure.

Sources