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

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

Reply
转角遇见你
Frequent Visitor

PostgreSQL + powerbi desktop connection error

Hi,

I'm trying to connect my PB desktop to a PostgreSQL DB but the following error is generated:

_0-1726113190488.png

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@转角遇见你 , Please make sure all settings are done

 

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/

 

Please confirm postgresql version. with version 16, we might need a configration file at server end.

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

View solution in original post

Anonymous
Not applicable

Hi @转角遇见你 ,

 

Please kindly refer to the similar post and try the possible solutions:

c# - Could not load file or assembly System.Runtime.CompilerServices.Unsafe - Stack Overflow

It contains the following two suggestions.

1.Register System.Runtime.CompilerServices.Unsafe version 4.0.4.1 into GAC

2.If you use Net Framework projects with xxx.config file, you could use bindingRedirect. Add these in app.config file or web.config file.

 

Best Regards,

Stephen Tao

 

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 @转角遇见你 ,

 

Please kindly refer to the similar post and try the possible solutions:

c# - Could not load file or assembly System.Runtime.CompilerServices.Unsafe - Stack Overflow

It contains the following two suggestions.

1.Register System.Runtime.CompilerServices.Unsafe version 4.0.4.1 into GAC

2.If you use Net Framework projects with xxx.config file, you could use bindingRedirect. Add these in app.config file or web.config file.

 

Best Regards,

Stephen Tao

 

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

 

amitchandak
Super User
Super User

@转角遇见你 , Please make sure all settings are done

 

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/

 

Please confirm postgresql version. with version 16, we might need a configration file at server end.

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
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