Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Memory Allocation failure on Power Bi desktop app

Error Message:
Memory error: Memory Allocation failure . Try simplifying or reducing the number of queries.
Error happened while loading table '', file '20.HOT cci gpmt ecommerce global (22).company (109).0.idf'. (HOT cci gpmt ecommerce global (22)).

 

Initially we used direct mode for our query.

recently we moved from direct mode to import mode.

After we moved the file size became huge like around 5 GB. 

and when I open this file getting memory allocation error.

 

trouble shooting steps done:

-We tried to reduce the timeline of our query like intially we get data for 12 month the file size is around 5 GB, after we tried for 6 months it is working fine.

-Going forward we tried for 8 months we are not facing any issue.

-Now when we try to get data for 10 month we are getting same error like memory allocation.

-We saved all file in onedrive only, cleared temp files.

 

Please help out.

 

 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous ,
    Based on your description, it appears that your issue is that the conversion from DirectQuery to import mode significantly increases the file size, resulting in memory allocation errors when trying to load larger datasets.
    You can try these methods to resolve the issue. First, you can use modeling data reduction techniques, including removing unnecessary columns and rows and optimizing column data types. These steps can significantly reduce the memory footprint of Power BI files.
    Second, implementing an incremental refresh strategy can help manage the size of your dataset by refreshing only the data that has changed rather than the entire dataset. This is especially effective for large datasets that do not require frequent refreshes of the entire data.
    You can check out these documents for more information
    Data reduction techniques for Import modeling - Power BI | Microsoft Learn
    Use storage mode in Power BI Desktop - Power BI | Microsoft Learn
    Incremental refresh for semantic models and real-time data in Power BI - Power BI | Microsoft Learn

    Best regards,
    Albert He

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,
    Based on your description, it appears that your issue is that the conversion from DirectQuery to import mode significantly increases the file size, resulting in memory allocation errors when trying to load larger datasets.
    You can try these methods to resolve the issue. First, you can use modeling data reduction techniques, including removing unnecessary columns and rows and optimizing column data types. These steps can significantly reduce the memory footprint of Power BI files.
    Second, implementing an incremental refresh strategy can help manage the size of your dataset by refreshing only the data that has changed rather than the entire dataset. This is especially effective for large datasets that do not require frequent refreshes of the entire data.
    You can check out these documents for more information
    Data reduction techniques for Import modeling - Power BI | Microsoft Learn
    Use storage mode in Power BI Desktop - Power BI | Microsoft Learn
    Incremental refresh for semantic models and real-time data in Power BI - Power BI | Microsoft Learn

    Best regards,
    Albert He

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly