Forum Discussion

HMZ_PBIX's avatar
HMZ_PBIX
New Member
1 year ago
Solved

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:

 

The cloud connection in settings is online:

 

  • 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

     

     

  • Anonymous's avatar
    Anonymous
    1 year ago

    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 connections - Stack Overflow
    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.

    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


    Settings in Power BI Service(use gateway)

     


    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.

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    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 connections - Stack Overflow
    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.

    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


    Settings in Power BI Service(use gateway)

     


    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.

  • 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