<?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: Power BI Report Server RLS is error while query is passed to MSSQL in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-RLS-is-error-while-query-is-passed-to/m-p/2560153#M24464</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="395462" data-lia-user-login="DariaM" class="lia-mention lia-mention-user"&gt;DariaM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't reproduce your issue, when did this problem start? Have you upgraded to the latest version of PBIRS, and if you are now on the latest version, does this problem still occur in previous versions?&lt;BR /&gt;Do other reports have similar experiences?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Caitlyn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2022 05:36:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-06T05:36:16Z</dc:date>
    <item>
      <title>Power BI Report Server RLS is error while query is passed to MSSQL</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-RLS-is-error-while-query-is-passed-to/m-p/2552737#M24405</link>
      <description>&lt;P&gt;RLS error sometimes occurs when reports are run in Power BI Report Server. In order to track what query is transferred to the database, we installed Profiler on MSSQL.&lt;/P&gt;&lt;P&gt;As a result, we got that query was transferred without user when RLS fell, an example of a query received from PBI in MSSQL:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-90px"&gt;select fn.system_code&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, fn.country&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, fn.region&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, fn.Client_type&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, fn.total_sum&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, fn.od_dt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, ul.local_user&lt;BR /&gt;FROM dbo.get_User_List() ul cross apply dbo.pb_return (ul.email) fn&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the same time, multiple queries can be simultaneously passed from PBI to MSSQL when report is executed, but the RLS error set only in the first query. The error is floating, and if the first request was successful, then the report is generated successfully until the session ends.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of a request from PBI to MSSQL, where RLS worked correctly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-90px"&gt;SELECT&amp;nbsp;&lt;BR /&gt;TOP (1000001) [t0].[Client_type],&lt;BR /&gt;(COUNT_BIG(DISTINCT [t0].[od_dt]) + MAX(CASE WHEN [t0].[od_dt] IS NULL THEN 1 ELSE 0 END))&lt;BR /&gt;&amp;nbsp;AS [a0],SUM([t0].[equity])&lt;BR /&gt;&amp;nbsp;AS [a1]&lt;BR /&gt;FROM&amp;nbsp;&lt;BR /&gt;(&lt;BR /&gt;(&lt;BR /&gt;select fn.system_code&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-90px"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;, fn.country&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, fn.region&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, fn.Client_type&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, fn.total_sum&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, fn.od_dt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, ul.local_user&lt;BR /&gt;FROM dbo.get_User_List() ul cross apply dbo.pb_return (ul.email) fn&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&amp;nbsp;AS [t0]&lt;BR /&gt;WHERE&amp;nbsp;&lt;BR /&gt;([t0].[local_user] = N'user@mail.ru')&lt;/P&gt;&lt;P class="lia-indent-padding-left-90px"&gt;GROUP BY [t0].[Client_type]&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is there a problem happened with RLS? And is there any solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PBI RS Version 1.13.8086.22725(January 2022)&lt;/P&gt;&lt;P&gt;Microsoft SQL Server 2017&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 12:02:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-RLS-is-error-while-query-is-passed-to/m-p/2552737#M24405</guid>
      <dc:creator>DariaM</dc:creator>
      <dc:date>2022-06-01T12:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server RLS is error while query is passed to MSSQL</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-RLS-is-error-while-query-is-passed-to/m-p/2560153#M24464</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="395462" data-lia-user-login="DariaM" class="lia-mention lia-mention-user"&gt;DariaM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't reproduce your issue, when did this problem start? Have you upgraded to the latest version of PBIRS, and if you are now on the latest version, does this problem still occur in previous versions?&lt;BR /&gt;Do other reports have similar experiences?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Caitlyn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 05:36:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-RLS-is-error-while-query-is-passed-to/m-p/2560153#M24464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-06T05:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server RLS is error while query is passed to MSSQL</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-RLS-is-error-while-query-is-passed-to/m-p/2563376#M24496</link>
      <description>&lt;P&gt;Good afternoon!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem started in March and it continues to this day. Updated to the latest version "May 2022". The version "January 2022" was previously installed. The problem occurs randomly on different reports with a request through "DirectQuery".&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 08:54:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-RLS-is-error-while-query-is-passed-to/m-p/2563376#M24496</guid>
      <dc:creator>DariaM</dc:creator>
      <dc:date>2022-06-07T08:54:57Z</dc:date>
    </item>
  </channel>
</rss>

