Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
DataNat
Frequent Visitor

Analyze in Excel Error: MaxPacketLimitReached

I am analyzing a report in Analyze in Excel and there is one numeric field that triggers the error copied below. Other fields are pulled into the pivot table without issues.

 

We couldn't get data from an exernal data source. Please try again later.

If the problem persists, please contact the administrator for the external data source.

Here is the error message that was returned from the Analysis Server named pbiazure://api.powerbi.com:

 

{"error:"{"code":"DM_GWPipeline_Client_MaxPacketLimitReached","pbi.error":"code":"DM_GWPipeline_Client_MaxPacketLimitReached","parameters":{},"details":[],"exceptionCulprit":1}}}

 

For context, I am using a DirectQuery connection to a Sql server database.

 

I did a search for this error but wasn't able to find any results. Anyone know what may be going on?

 

 

 

 

1 ACCEPTED SOLUTION

Thanks GilbertQ for your input! This isn't the direct solution to the issue, but I switched to Import mode (from Direct Query) and the error is gone. This does appear to be a row limit issue, specifically in direct query mode.

 

View solution in original post

5 REPLIES 5
GilbertQ
Super User
Super User

Hi there

From the message it would indicate that the amount of rows that it will request is more than the default (which from my understanding is 1 million rows)

If you could confirm if you run a query on the SQL database for that column how many rows it returns?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

I have the exact same issue but it comes about when I am running a DAX query from Report Builder. 

The query references tables from a Power BI model in the Power BI Service, ie cloud.  The model is hybrid in the sense that all tables are in import mode but one, which is is in DirectQuery mode via a gateway to an on-prem SQL Server DB (2017).

So, the DAX that Report Builder is trying to run references both the DirectQuery table and imported tables.  The DirectQuery mode cannot be imported because there is simply too much data to import the table as a whole. 

The error message is exactly the same:

{"error:
"{"code":"DM_GWPipeline_Client_MaxPacketLimitReached",
"pbi.error":"code":"DM_GWPipeline_Client_MaxPacketLimitReached",
"parameters":{},
"details":[],
"exceptionCulprit":1}}}

 

The initial working result set size the DAX query needs to work on is < 900K.  I am trying to get DAX to further filter it down to a couple dozen rows:  It works fine in DAX Studio, but when running from Report Builder it craps out. I suppose Report Builder uses a DAX engine inside its own process and tries to get all the initial data it needs to work on instead of telling the DAX engine in the cloud, ie in the Power BI Service, to perform the computation and once finished send the smaller result set.

Of note is that the result set DAX starts with from the DirectQuery of the DB never exceeds the 1M row limit. Therefore why does Report Builder emit this error????

None of it makes any sense. But hey, I guess I should start getting used to the fact that not much makes sense when it comes to DAX, especially its inability to refer to table variable names that are supposed to be in scope but won't be recognized as existing because only a base table ref will do.  What a wonderful DSL (Domain Specific Language)!  


 

I also have the same issue, Did you ever have any luck with this?

I can't remember TBH, it was such a long time ago.  But after this initial testing with Report Builder, we determined it was too horrible an experience to use in production and so we switched to InfoRiver Matrix.  It was like going from hell to heaven, I kid you not--Report Builder user experience is that bad.

Thanks GilbertQ for your input! This isn't the direct solution to the issue, but I switched to Import mode (from Direct Query) and the error is gone. This does appear to be a row limit issue, specifically in direct query mode.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.