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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

ADO.NET: Python script error. memory allocation of 8192 bytes failed

I currently have a python script which uses the Polars library to create dataframes. At the end of my script, I convert these polars dataframes into pandas dataframes. And I have a total of 5 dataframes.

 

All the dataframes seem to load up in the navigator, but when I click on 'Load', it shows me the error below:

anonymous_panda_0-1718067950830.png

Does anyone know how to solve this issue? Thank you.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @Anonymous 

As the error suggests, Power BI may not be able to allocate so much memory to execute the current python script. You can try to close other unnecessary applications, try to execute the current python script in a computer with more RAM. In addition, you can check whether the current python script processing is inefficient and takes up too much memory, causing the current problem.

Confirm that your current version of Power BI desktop is 64-bit, which will generally allow access to more memory.

vjianpengmsft_1-1718158147092.png

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @Anonymous 

Have you solved the current problem?

 

Best Regards

Jianpeng Li

Anonymous
Not applicable

Hi, @Anonymous 

As the error suggests, Power BI may not be able to allocate so much memory to execute the current python script. You can try to close other unnecessary applications, try to execute the current python script in a computer with more RAM. In addition, you can check whether the current python script processing is inefficient and takes up too much memory, causing the current problem.

Confirm that your current version of Power BI desktop is 64-bit, which will generally allow access to more memory.

vjianpengmsft_1-1718158147092.png

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors