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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JR2018
New Member

Error connecting to PostGresSQL db

Hi there, 


I have searched the preexisting threads related to PostGres connections but have not found one with the same issue. When I open Power BI desktop, i click Get Data and then i select the PostGresSQL database option and enter the Server Name and Database name. I then get the error below. 

 

Details: "An error happened while reading data from the provider: 'Could not load file or assembly 'System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.'"

 

Any advice on this would be appreciated. 
THanks

12 REPLIES 12
Diogo
New Member

I solved it by installing Npgsql-3.2.7. Versions above 4 are incompatible

This worked for me thanks. Just had to uninstall all the other versions, restart my server/client.
Install 3.2.7.

Diogo
New Member

I need help about this message too Smiley Indifferent

Even I am facing the same issue.

 

Details: "An error happened while reading data from the provider: 'Could not load file or assembly 'System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'"

Any one found solution for this? Please to needful

Did you try the OBDC connection already?

Any one found solution for this?

Anonymous
Not applicable

Potentially the same issue here, do we have anyone able to lend a hand? Thanks!

 

'Could not load file or assembly 'System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

 

 

Aron_Moore
Solution Specialist
Solution Specialist

We had issues with the standard PostgresSQL connector and used ODBC instead. Check this link.

Thanks Aron, i will try this and report back

Anonymous
Not applicable

Hi JR, 

I have the same issue now. Did you have a solution for the issue?

So we tried the odbc connection and it worked in terms of connecting to the DB however when we tried to query the tables in the DB we got the following error 

 

DataSource.Error: ODBC: ERROR [HYOOO][Devart][ODBC][PostgresSQL]character with byte sequence 0xa5 in encoding "UTF8" has no equivalent in encoding "WIN1252"

 

So we made some progress but not there yet. Going to try and figure this out now.

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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