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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
akj2784
Post Partisan
Post Partisan

Not able to connect Postgres SQL database from Power BI

Hi All,

I am trying to connect Postgres db from Power BI. But getting the following error.

 

Details: "An error happened while reading data from the provider: 'Could not load file or assembly 'System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.'" I have installed the ngpsql data provided but still not luck. Also restarted the laptop.

error9.JPG

 

 

Regards,

Akash

1 ACCEPTED SOLUTION

Hi,

 

Actually the latest version of npgsql has some bug which will be fixed in the next release. When I installed older version (4.0.3) it worked fine.

 

Regards,

Akash

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @akj2784 ,

It sounds like your software has missed some libraries, please try to fix your software environment first.

Get Power BI Desktop

Connecting Power BI To PostgreSQL

Regards,

Xiaoxin Sheng

Hi,

 

Actually the latest version of npgsql has some bug which will be fixed in the next release. When I installed older version (4.0.3) it worked fine.

 

Regards,

Akash

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.