<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: (Report Server, May 2020) Postgres Direct Query Npgqsl in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-Server-May-2020-Postgres-Direct-Query-Npgqsl/m-p/1300042#M15573</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="252721" data-lia-user-login="dstar" class="lia-mention lia-mention-user"&gt;dstar&lt;/a&gt; , have imported trusted certificate - Power BI Only support SSL enabled PostgreSQL &lt;/P&gt;
&lt;P&gt;You might have to convert its format before importing&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sonicwall.com/support/knowledge-base/how-can-i-import-certificates-into-the-ms-windows-local-machine-certificate-store/170504615105398/" target="_blank"&gt;https://www.sonicwall.com/support/knowledge-base/how-can-i-import-certificates-into-the-ms-windows-local-machine-certificate-store/170504615105398/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/skype-sdk/sdn/articles/installing-the-trusted-root-certificate" target="_blank"&gt;https://docs.microsoft.com/en-us/skype-sdk/sdn/articles/installing-the-trusted-root-certificate&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Aug 2020 07:37:23 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-08-17T07:37:23Z</dc:date>
    <item>
      <title>(Report Server, May 2020) Postgres Direct Query Npgqsl</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-Server-May-2020-Postgres-Direct-Query-Npgqsl/m-p/1294417#M15551</link>
      <description>&lt;P&gt;I am trying to create a report on Power BI Report Server (on-prem) which connects to a PostgreSQL database through Direct Query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to this page, PostgreSQL is now listed as "DirectQuery / Live Connection": Yes&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/power-bi-data-sources" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/connect-data/power-bi-data-sources&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it may be that the above link revers only to the Desktop version?&lt;/P&gt;&lt;P&gt;"Power BI report data sources in Power BI Report Server" still lists PostgreSQL as "Live/DirectQuery": No&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/report-server/data-sources" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/report-server/data-sources&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I have tried so far:&lt;/P&gt;&lt;P&gt;I created a report in "Power BI Desktop (Optimized for Power BI Report Server - May 2020)", basically following the recipe on this page for setting up Row-level-security:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/report-server/row-level-security-report-server" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/report-server/row-level-security-report-server&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I setup a User role which would filter data by looking up "[username] = userprincipalname()" against a user table in my postgres database (where username is defined according to the format "uid@domain.com" used by the userprincipalname() DAX function)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I uploaded the report, clicked on the "..." button --&amp;gt; "Data sources", and I could see that it copied the database connection string and credentials that I had already entered in the desktop version (Connection Type: Postgresl, Authentication Type: Basic Authentication).&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I clicked "Test Connection" I got an error:&lt;/P&gt;&lt;P&gt;"Coudn't connect: Please install Npgsql version 4.0.10 or earlier"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went to install Npgsql according to the documentation here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.npgsql.org/doc/installation.html" target="_blank" rel="noopener"&gt;https://www.npgsql.org/doc/installation.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I first tried installing using Nuget:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nuget.org/packages/Npgsql/4.0.10" target="_blank" rel="noopener"&gt;https://www.nuget.org/packages/Npgsql/4.0.10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but the "Install-Package" cmdlet was not recognized in PowerShell (I do not have Visual Studio installed on the server).&lt;/P&gt;&lt;P&gt;I went ahead and upgraded Windows Management Framework to version 5.1:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.microsoft.com/en-us/download/details.aspx?id=54616" target="_blank" rel="noopener"&gt;https://www.microsoft.com/en-us/download/details.aspx?id=54616&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I still could not get the "nuget" (aka "Install-Package") installer to work, so in the end I just used the ".msi" installer on Github:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/npgsql/npgsql/releases/tag/v4.0.10" target="_blank" rel="noopener"&gt;https://github.com/npgsql/npgsql/releases/tag/v4.0.10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I made sure to select the "GAC Installation"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After completing the installation and restarting the server, I was able to run "... --&amp;gt; Data Sources --&amp;gt; Test Connection" successfully in the Report Server web interface!&lt;/P&gt;&lt;P&gt;However, when I tried to view the report I got a new error:&lt;/P&gt;&lt;P&gt;"An unexpected error occurred: We couldn't connect to the Analysis Services server. Make sure you've entered the connection string correctly."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I don't know what is going on.&amp;nbsp; I am not trying to connect through Analysis Services, so the error does not make sense to me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I just out of luck because technically Postgres is not yet supported for DirectQuery in Report Server (even though it is now supported in Power BI Desktop)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have to start over and try again by setting up a Direct Query ODBC connector?&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/DataConnectors/blob/master/docs/odbc.md" target="_blank"&gt;https://github.com/microsoft/DataConnectors/blob/master/docs/odbc.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do I have to just migrate all of my data to SQL Server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 19:03:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Report-Server-May-2020-Postgres-Direct-Query-Npgqsl/m-p/1294417#M15551</guid>
      <dc:creator>dstar</dc:creator>
      <dc:date>2020-08-13T19:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: (Report Server, May 2020) Postgres Direct Query Npgqsl</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-Server-May-2020-Postgres-Direct-Query-Npgqsl/m-p/1300042#M15573</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="252721" data-lia-user-login="dstar" class="lia-mention lia-mention-user"&gt;dstar&lt;/a&gt; , have imported trusted certificate - Power BI Only support SSL enabled PostgreSQL &lt;/P&gt;
&lt;P&gt;You might have to convert its format before importing&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sonicwall.com/support/knowledge-base/how-can-i-import-certificates-into-the-ms-windows-local-machine-certificate-store/170504615105398/" target="_blank"&gt;https://www.sonicwall.com/support/knowledge-base/how-can-i-import-certificates-into-the-ms-windows-local-machine-certificate-store/170504615105398/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/skype-sdk/sdn/articles/installing-the-trusted-root-certificate" target="_blank"&gt;https://docs.microsoft.com/en-us/skype-sdk/sdn/articles/installing-the-trusted-root-certificate&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 07:37:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Report-Server-May-2020-Postgres-Direct-Query-Npgqsl/m-p/1300042#M15573</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-17T07:37:23Z</dc:date>
    </item>
  </channel>
</rss>

