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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
HMZ_PBIX
New Member

Semantic model refresh Data source error: The PostgreSQL source doesn't support encrypted connection

i am losing my brain cells with this power bi service crap, my data source is a postgresql database hosted on a server, in power bi desktop it connects perfect, when i check the connection in connections it says online, but when i try to refresh the semantic model i get this error:

HMZ_PBIX_1-1740426457768.png

 

The cloud connection in settings is online:

HMZ_PBIX_2-1740426514307.png

 

2 ACCEPTED SOLUTIONS
d_gosbell
Super User
Super User

What encryption option did you use when setting up your gateway connection? It sounds like you chose the "encrypted" option when your server does not support that

d_gosbell_1-1740447016866.png

 

 

View solution in original post

v-jtian-msft
Community Support
Community Support

Hi,d_gosbell ,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.


Hello,@HMZ_PBIX .I am glad to help you.
I think d_gosbell's suggestion is helpful
Have you set up a gateway connection for the PostgreSQL sources in the power bi service. If you are using a gateway, in the gateway connection you can see that you can set the data source to be unencrypted, some users have mentioned that if you need to ensure that the data source is encrypted then you need to set up the SSL certificates correctly according to the Microsoft requirements.
Until then I would recommend that you try setting No Encryption first (either in Power BI Desktop or Power BI Service), check that you can create the gateway connection and refresh the report properly in your environment, and then consider the encryption issue later.
powerbi - Power BI Service - Unable to refresh a postgresql source which doesn't support encrypted c...
In the official documentation, it is recommended to give preference to the unencrypted option in the official connection cases (selected when connecting to the data source in power bi desktop).
You need to use NpgSQL and configure the relevant parameters.

vjtianmsft_0-1740448441988.png

I've tried configuring the power bi service gateway connection for PostgreSQL sources and the report refreshes successfully in the service, so hopefully this issue will help you. (This covers the process of making my pbix file to finally refreshing it in service)
URL:
Error connecting Postgres with Gateway - Microsoft Fabric Community

Settings in Power BI Desktop

vjtianmsft_1-1740448486177.pngvjtianmsft_2-1740448495303.png
Settings in Power BI Service(use gateway)

vjtianmsft_4-1740448672107.png

 

vjtianmsft_3-1740448517721.png


I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
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
v-jtian-msft
Community Support
Community Support

Hi,d_gosbell ,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.


Hello,@HMZ_PBIX .I am glad to help you.
I think d_gosbell's suggestion is helpful
Have you set up a gateway connection for the PostgreSQL sources in the power bi service. If you are using a gateway, in the gateway connection you can see that you can set the data source to be unencrypted, some users have mentioned that if you need to ensure that the data source is encrypted then you need to set up the SSL certificates correctly according to the Microsoft requirements.
Until then I would recommend that you try setting No Encryption first (either in Power BI Desktop or Power BI Service), check that you can create the gateway connection and refresh the report properly in your environment, and then consider the encryption issue later.
powerbi - Power BI Service - Unable to refresh a postgresql source which doesn't support encrypted c...
In the official documentation, it is recommended to give preference to the unencrypted option in the official connection cases (selected when connecting to the data source in power bi desktop).
You need to use NpgSQL and configure the relevant parameters.

vjtianmsft_0-1740448441988.png

I've tried configuring the power bi service gateway connection for PostgreSQL sources and the report refreshes successfully in the service, so hopefully this issue will help you. (This covers the process of making my pbix file to finally refreshing it in service)
URL:
Error connecting Postgres with Gateway - Microsoft Fabric Community

Settings in Power BI Desktop

vjtianmsft_1-1740448486177.pngvjtianmsft_2-1740448495303.png
Settings in Power BI Service(use gateway)

vjtianmsft_4-1740448672107.png

 

vjtianmsft_3-1740448517721.png


I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

d_gosbell
Super User
Super User

What encryption option did you use when setting up your gateway connection? It sounds like you chose the "encrypted" option when your server does not support that

d_gosbell_1-1740447016866.png

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.