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
Lena85
Helper I
Helper I

Connecting Power BI to PostreSQL managed by Heroku - certificate issue P7B

Hello,

 

I need to build a direct query connection to PostreSQL db managed by Heroku. The error I get is:

"Unable to connect. Details: An error happened while reading data from the provider: The remote certificate is invalid according to the validation procedure." 

I have received the attached certificates from my IT. 

Lena85_0-1634049924510.png

These work on ODBC connection, therefore we know they are ok. However, we do not want to work with ODBC because it does not have the direct query function. We assume that  that the connection doesn’t work since the provided certificates only work when we can also change the following settings:

 

sslmode=Require;Trust Server Certificate=true

 

Since this is not possible in PowerBi we will need a P7B version of the certificate which should not need these properties.
We tried to generate the P7B file based on the files above, but we did not succeed. To our knowledge it is not possible to obtain P7B format directly from Heroku. Can you recommend how to obtain working P7B format or any feasible workaround for this issue?

 

Thank you!

Lena

 

 

 

 

 

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Unfortunately, I haven't experienced this, but I found a thread that can help you. Please refer to:https://community.powerbi.com/t5/Issues/PostgreSQL-heroku-database-with-PowerBI/idi-p/380470 

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.