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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
joerykeizer
Helper II
Helper II

Memory error when refreshing

Hi all,

 

Since a few weeks I'm having problems refreshing my data in PowerBI desktop:

 

error.png

 

I'm running a 64-bit version with 16GB memory. Task manager shows msmdsrv.exe causing spikes for a few seconds, then I get the error. This is only after the data in the tables has been loaded.

 

error2.png

 

The .pbix file is about 380 mb and the model is a little complex, but not much has changed in the last months yet I can't seem to refresh at all in the past weeks.

 

Did anyone experience the same problem and/or have a solution for this?

1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@joerykeizer Check if increasing size as shown below helps in your case.

 

Capture.PNG

 

View solution in original post

9 REPLIES 9
joerykeizer
Helper II
Helper II

Thank you for your replies.

 

@ankitpatira I doubled the cache size after you suggested it, this didn't seem to work at first but the refresh completed today and yesterday so maybe it had something to do with it after all. I'll accept this as the answer for now.

 

@v-haibl-msft I use a lot of different sources, DirectQuery is not an option anymore.

 

@GilbertQ I'll look into making the model more efficient. I exclude unneccessary data/columns as much as possible but I do have a lot of calculated columns/measures so maybe that's why completing the refresh was so difficult.

Anonymous
Not applicable

Sorry,

I "up" this post cause I got the same message.

I increase the Maximum Size (10 000Mo) and the message is the same.

 

Does anybody have an other issue?

 

PS : My version is a 32 bytes and I cannot (and not be able to) update on 64b

Hi @Anonymous

 

It does appear that you have hit the 32bit memory limit. As suggested before possibly see if you can reduce the columns to enable for it to fit into the memory allocation for 32bit.





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

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Ok, I did it...

39Mo, it's a small file, isn't it? There is no complex structure.

 

There is 10 000 rows and 50 000 rows on my 2 biggest tables (and few tables with 5 or 10 rows). I don't think it's big, don't you?

It also has to do with the data model (star is recommended) and cardinality, as mentioned before.  Try to improve your data model (reduce as much text columns to keys as possible and have lookup tables for said keys).  Try to perform as much of the calculated tables/columns in the query editor for improved compression.  Turn off enabling load of tables that you don't use in the report.  Try to make your tables skinny by removing as many columns as possible.

 

GilbertQ
Super User
Super User

I would suggest ensuring that you only include the columns that you require.

 

Also possibly some of the data has a high level of cardionality, which is causing the data not to compress as efficiently as it should?

 

Another tip is if you are doing any calculated columns in the Power BI Model, to move the ones that you can into the Query Editor. The reason for this is that due to the columns being computed before the xVelocity engine completes it's tasks, this will cause the columns to be more efficiently compressed. Which in turn could save you memory.





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

Proud to be a Super User!







Power BI Blog

v-haibl-msft
Employee
Employee

@joerykeizer

 

What is your data source? If you are using Import mode, maybe you can try with DirectQuery mode.

 

Best Regards,

Herbert

Thanks for your help.  Cannot get back into my tablet just now may try my laptop.  Could not start the course until Friday as had error problems.  Sorted them but now it is memory problems.

I will take your advice once I am up and running again.  Thank you.


@v-haibl-msft wrote:

@joerykeizer

 

What is your data source? If you are using Import mode, maybe you can try with DirectQuery mode.

 

Best Regards,

Herbert


Thank you I will.

ankitpatira
Community Champion
Community Champion

@joerykeizer Check if increasing size as shown below helps in your case.

 

Capture.PNG

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.