<?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 Power BI Embedded Row Level Security, Couldn't load data for this visual 401 error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/160045#M5380</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Using the Sample at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-get-started-sample" target="_blank"&gt;https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-get-started-sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And following the article at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-rls" target="_blank"&gt;https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-rls&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unable to get RLS working on an embedded report. The error received is as below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The Report works fine with RLS removed, but allowing user based RLS will be cricual to our business.&lt;/P&gt;&lt;P&gt;The Sample Embed token has been changed to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IEnumerable&amp;lt;string&amp;gt; UserRoles = new List&amp;lt;string&amp;gt;() {"provider"};
var embedToken = PowerBIToken.CreateReportEmbedToken(this.workspaceCollection, this.workspaceId, report.Id, "10005", UserRoles);&lt;/PRE&gt;&lt;P&gt;The Role is called "provider", and has the following&amp;nbsp;filter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[provider_ID_INT] = USERNAME() || [provider_ID_INT] = "-1"&lt;/PRE&gt;&lt;P&gt;When testing this in power bi desktop with "10005" entered into other user, the RLS works perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Report contains 3 data sets, one with a list of distinct providers, which links to two data tables based on a ID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The list of distinct providers has the Role applied to it.&lt;/P&gt;&lt;P&gt;The data sets are imported, direct query is not used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen similar forum posts but none with a solution.&lt;/P&gt;&lt;P&gt;Has anyone found an answer to this,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or might anyone know what i am doing wrong.&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2017 00:12:13 GMT</pubDate>
    <dc:creator>rsb_powerbi</dc:creator>
    <dc:date>2017-04-18T00:12:13Z</dc:date>
    <item>
      <title>Power BI Embedded Row Level Security, Couldn't load data for this visual 401 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/160045#M5380</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Using the Sample at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-get-started-sample" target="_blank"&gt;https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-get-started-sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And following the article at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-rls" target="_blank"&gt;https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-rls&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unable to get RLS working on an embedded report. The error received is as below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The Report works fine with RLS removed, but allowing user based RLS will be cricual to our business.&lt;/P&gt;&lt;P&gt;The Sample Embed token has been changed to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IEnumerable&amp;lt;string&amp;gt; UserRoles = new List&amp;lt;string&amp;gt;() {"provider"};
var embedToken = PowerBIToken.CreateReportEmbedToken(this.workspaceCollection, this.workspaceId, report.Id, "10005", UserRoles);&lt;/PRE&gt;&lt;P&gt;The Role is called "provider", and has the following&amp;nbsp;filter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[provider_ID_INT] = USERNAME() || [provider_ID_INT] = "-1"&lt;/PRE&gt;&lt;P&gt;When testing this in power bi desktop with "10005" entered into other user, the RLS works perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Report contains 3 data sets, one with a list of distinct providers, which links to two data tables based on a ID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The list of distinct providers has the Role applied to it.&lt;/P&gt;&lt;P&gt;The data sets are imported, direct query is not used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen similar forum posts but none with a solution.&lt;/P&gt;&lt;P&gt;Has anyone found an answer to this,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or might anyone know what i am doing wrong.&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 00:12:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/160045#M5380</guid>
      <dc:creator>rsb_powerbi</dc:creator>
      <dc:date>2017-04-18T00:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Row Level Security, Couldn't load data for this visual 401 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/160994#M5415</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="27270" data-lia-user-login="rsb_powerbi" class="lia-mention lia-mention-user"&gt;rsb_powerbi&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The token actually works for me when My pbix just contains one table. Do you mind uploading the pbix? I'd like to check the RLS setting in your case.&lt;/P&gt;
&lt;PRE&gt;var embedToken = PowerBIToken.CreateReportEmbedToken(this.workspaceCollection, this.workspaceId, report.Id,"10005",new string[] { "provider"});&lt;/PRE&gt;
&lt;P&gt;Check the simple pbix in my test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 07:20:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/160994#M5415</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-04-19T07:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Row Level Security, Couldn't load data for this visual 401 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/162437#M5444</link>
      <description>&lt;P&gt;Hello Eric,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried uploading your power BI File and i received the same error as with my powerbi file.&lt;/P&gt;&lt;P&gt;However, if i remove the RLS from your file and then upload it it works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Apr 2017 05:58:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/162437#M5444</guid>
      <dc:creator>rsb_powerbi</dc:creator>
      <dc:date>2017-04-21T05:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Row Level Security, Couldn't load data for this visual 401 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/162461#M5445</link>
      <description>&lt;P&gt;I also tried recreating my embedded workspaces/starting the sample from scratch again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still with the same issue.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 06:27:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/162461#M5445</guid>
      <dc:creator>rsb_powerbi</dc:creator>
      <dc:date>2017-04-21T06:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Row Level Security, Couldn't load data for this visual 401 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/163377#M5469</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="27270" data-lia-user-login="rsb_powerbi" class="lia-mention lia-mention-user"&gt;rsb_powerbi&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I also tried recreating my embedded workspaces/starting the sample from scratch again.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still with the same issue.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="27270" data-lia-user-login="rsb_powerbi" class="lia-mention lia-mention-user"&gt;rsb_powerbi&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Would you mind share your&amp;nbsp;application? You can share me a github link or a zipped folder.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 08:11:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/163377#M5469</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-04-24T08:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Row Level Security, Couldn't load data for this visual 401 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/164517#M5499</link>
      <description>&lt;P&gt;Hello Eric,&lt;/P&gt;&lt;P&gt;I have Messaged you a link for the zipped application file&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 00:04:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/164517#M5499</guid>
      <dc:creator>rsb_powerbi</dc:creator>
      <dc:date>2017-04-26T00:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Row Level Security, Couldn't load data for this visual 401 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/164556#M5501</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="27270" data-lia-user-login="rsb_powerbi" class="lia-mention lia-mention-user"&gt;rsb_powerbi&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello Eric,&lt;/P&gt;
&lt;P&gt;I have Messaged you a link for the zipped application file&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="27270" data-lia-user-login="rsb_powerbi" class="lia-mention lia-mention-user"&gt;rsb_powerbi&lt;/a&gt;&lt;BR /&gt;Thanks for sharing the application. However it works just fine in my test. &amp;nbsp;I just open it in Visual studio 2015 without changing any code. Can you double check the uploaded test?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the problem persists, please upload a &lt;A href="https://www.youtube.com/watch?v=KmKMpXBEkK0" target="_self"&gt;fiddler&lt;/A&gt; trace file of the network traffic when loading the report.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 02:07:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/164556#M5501</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-04-26T02:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Row Level Security, Couldn't load data for this visual 401 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/166054#M5532</link>
      <description>&lt;P&gt;Hello Eric,&lt;/P&gt;&lt;P&gt;Thanks so much for your help, as it really narrowed down where the problem was.&lt;/P&gt;&lt;P&gt;It looks like the issue was with one of the packages, which&amp;nbsp;was not working with RLS corectly - but would work without it. I must have taken a version from before RLS was implemented.&lt;/P&gt;&lt;P&gt;After updating all packages with NuGet to the latest working versions it now works with RLS correctly.&lt;/P&gt;&lt;P&gt;Hopefully this is of help to anyone with the same problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 04:40:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/166054#M5532</guid>
      <dc:creator>rsb_powerbi</dc:creator>
      <dc:date>2017-04-28T04:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Row Level Security, Couldn't load data for this visual 401 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/207045#M6563</link>
      <description>&lt;P&gt;Hi RSB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you remember what version you upgraded your package to and from?&lt;/P&gt;&lt;P&gt;Also, what package did you have to upgrade?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was it Microsoft.PowerBI.Core?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 07:15:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Couldn-t-load-data-for-this/m-p/207045#M6563</guid>
      <dc:creator>landryn</dc:creator>
      <dc:date>2017-07-06T07:15:54Z</dc:date>
    </item>
  </channel>
</rss>

