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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
powerEDCE
Frequent Visitor

Importing data from SAP database -> cannot allocate enough memory

Dear all,

 

I have frequent problems when trying to import larger data sets from an SAP data base with Power BI.

 

I get this message:

 

DataSource.Error: ODBC: ERROR [S1000] [SAP AG][LIBODBCHDB DLL][HDBODBC] General error;4 cannot allocate enough memory: search table error: cannot allocate enough memory: search table error: [9] Memory allocation failed;exception 1000002: Allocation failed ; $size$=13989360832; $name$=Results; $type$=pool; $inuse_count$=35; $allocated_size$=224266949696; $alignment$=8; $failure_type$=STATEMENT_MEMORY_LIMIT

 

Does anyone have an idea how to handle that?

1 ACCEPTED SOLUTION
ribisht17
Super User
Super User

@powerEDCE 

 

Please check this post >> Solved: Memory allocation failed - Microsoft Power BI Community

 

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

View solution in original post

3 REPLIES 3
Harish85
Helper II
Helper II

Getting the error bcz there is millions of data at the Hana data base, how can we bring that data to powerbi

 

v-luwang-msft
Community Support
Community Support

Hi @powerEDCE ,

It seems related to the memory requirements, generally, to satisfied the memory requirements you should double the amount of data. That means I would provision a server with 128 GB if I have the 64GB instance.

 

You can refer to the blog about sizing HANA databases: https://blogs.sap.com/2017/03/07/the-ultimate-guide-to-effective-sizing-of-sap-hana/

 

Also, here’s another case similar with yours for your reference: https://answers.sap.com/questions/11364223/sap-dbtech-jdbc-4-cannot-allocate-enough-memory-ou.html

 

Tips for avoid the error: https://blogs.sap.com/2014/01/05/6-tips-to-avoid-hana-out-of-memory-oom-errors/

 

And you could test  "Get data" -> "SAP HAHA database" -> Type your server name -> open "Advance options" and type SQL statements to filter data.

 

 

 

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


Best Regards

Lucien

ribisht17
Super User
Super User

@powerEDCE 

 

Please check this post >> Solved: Memory allocation failed - Microsoft Power BI Community

 

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.