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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
abhishekjangid
Frequent Visitor

OLE DB or ODBC error: [DataSource.Error] PostgreSQL: Exception while reading from stream.

When using Power BI, occasionally a graph or chart does not load (can’t display the visual) with the error OLE DB or ODBC error: [DataSource.Error] PostgreSQL: Exception while reading from stream.

Hi all,

 

We are using PostgreSQL as a data source and Power BI connects to it via PGBouncer. After looking at PGBouncer logs and searching for similar issues, I’ve discovered that there are certain issues with Npgsql (a .NET driver for PostgreSQL, which I assume is being used by Power BI under the hood) and PGBouncer. The Github issue is https://github.com/pgbouncer/pgbouncer/issues/714. And the documentation for PGBouncer issues can be found in https://www.npgsql.org/doc/compatibility.html#pgbouncer.

 

From the documentation and the linked Github issue, a solution to this could be disabling Npgsql’s internal pooling. However, I have not been able to figure how to do this via Power BI connection settings.

 

Please advise me on the same.

 

Thanks

1 REPLY 1
amitchandak
Super User
Super User

@abhishekjangid , There are three things needed including the certification, do not miss anu

 

PostgreSQL
https://community.powerbi.com/t5/Power-Query/Connecting-to-PostgresSQL-hosted-on-AWS-RDS/td-p/135666
https://dataintoresults.com/post/powerbi-and-postgresql-ssl-lets-encrypt-and-gateway/
https://niftit.com/connecting-power-bi-to-postgresql/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors