<?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 Error generating an embed token with a composite model in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2512129#M36078</link>
    <description>&lt;P&gt;&lt;SPAN&gt;We have a Power BI Embed application for a number of reports. Recently we added a report to our embed application that points to a composite model. When we do that, we get the following error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;message=RDL Report cannot connect to dataset xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx because XMLA permissions are off&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried the following so far.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Verified the report works directly inside the Power BI service&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Verified I can connect via XMLA to the composite model&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Ensure the service principal used by the embed application has access to both datasets&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Ensure the service principal used by the embed application has access to both workspaces&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Updated GenerateTokenRequestV2 to include both sets of dataset ids and workspace ids instead of just the dataset and workspace the report is directly pointed to&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Verified we weren't violating any published limitations under: &lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there anything else anyone can think of? Is this a known limitation?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 04:48:53 GMT</pubDate>
    <dc:creator>KevinSnow</dc:creator>
    <dc:date>2022-05-13T04:48:53Z</dc:date>
    <item>
      <title>Error generating an embed token with a composite model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2512129#M36078</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We have a Power BI Embed application for a number of reports. Recently we added a report to our embed application that points to a composite model. When we do that, we get the following error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;message=RDL Report cannot connect to dataset xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx because XMLA permissions are off&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried the following so far.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Verified the report works directly inside the Power BI service&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Verified I can connect via XMLA to the composite model&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Ensure the service principal used by the embed application has access to both datasets&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Ensure the service principal used by the embed application has access to both workspaces&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Updated GenerateTokenRequestV2 to include both sets of dataset ids and workspace ids instead of just the dataset and workspace the report is directly pointed to&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Verified we weren't violating any published limitations under: &lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there anything else anyone can think of? Is this a known limitation?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 04:48:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2512129#M36078</guid>
      <dc:creator>KevinSnow</dc:creator>
      <dc:date>2022-05-13T04:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating an embed token with a composite model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2515276#M36101</link>
      <description>&lt;P&gt;Interesting.&amp;nbsp;&amp;nbsp;If you have a Pro license you can consider raising a Pro ticket at &lt;A href="https://powerbi.microsoft.com/en-us/support/pro/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/support/pro/&lt;/A&gt;&amp;nbsp; .&amp;nbsp; Curious to hear what they have to say about this.&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2022 19:07:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2515276#M36101</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-05-14T19:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating an embed token with a composite model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2515744#M36110</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/284827"&gt;@KevinSnow&lt;/a&gt;&amp;nbsp; what does your composite model connect to and how is it connected?&lt;/P&gt;&lt;P&gt;It's possible that your scenario isn't yet supported by Power BI embedded.&lt;/P&gt;&lt;P&gt;For example there's this limitation documented:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Using Power BI Embedded with datasets that include a DirectQuery connection to a Power BI datasets or Azure Analysis Services model isn't currently supported.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-datasets-azure-analysis-services#considerations-and-limitations" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-datasets-azure-analysis-services#considerations-and-limitations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most limitations regarding embedding a report with composite models are due to be removed in the comming weeks.&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2022 13:49:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2515744#M36110</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2022-05-15T13:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating an embed token with a composite model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2518793#M36136</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/278935"&gt;@AmosHersch&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The composite model contains two parts&lt;BR /&gt;1) A small internal dataset that is populated based on report parameter values&lt;BR /&gt;2) A connection to a global dataset in a separate workspace. The global dataset is refreshed nightly and contains a long-running pull from Azure Blob Storage. It goes directly to the blob account and not through a gateway connection.&lt;/P&gt;&lt;P&gt;I did not find where the case we are trying to perform is listed as a limitation, but maybe I missed it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;- I will look into getting a support ticket created for this if it's not something that is under a known limitation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 22:00:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2518793#M36136</guid>
      <dc:creator>KevinSnow</dc:creator>
      <dc:date>2022-05-16T22:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating an embed token with a composite model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2520124#M36144</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/284827"&gt;@KevinSnow&lt;/a&gt;&amp;nbsp;when you say that you have "A connection to a global dataset ..." I believe this is what the limitation refers to as "&lt;SPAN&gt;DirectQuery connection to a Power BI datasets".&amp;nbsp; Your first dataset is connected to the second dataset in direct query mode (regardless of the fact that they reside in different workspaces).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This limitation in Power BI embedded is expected to be lifted in a few weeks, but currently it's not supported.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 10:03:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2520124#M36144</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2022-05-17T10:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating an embed token with a composite model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2664311#M37560</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/278935"&gt;@AmosHersch&lt;/a&gt;&amp;nbsp;Do you have an updated ETA on the lifting of this restriction as it is still in place.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 08:49:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2664311#M37560</guid>
      <dc:creator>leroymeares</dc:creator>
      <dc:date>2022-07-27T08:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating an embed token with a composite model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2664347#M37563</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/304563"&gt;@leroymeares&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The limitation was removed.&lt;/P&gt;&lt;P&gt;You can see brief instructions for generating an embed token which will allow this scenario here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/generate-embed-token#directquery-for-power-bi-datasets" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/generate-embed-token#directquery-for-power-bi-datasets&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amos&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 08:57:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2664347#M37563</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2022-07-27T08:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating an embed token with a composite model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2665405#M37568</link>
      <description>&lt;P&gt;Amos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using GenerateTokenRequest from the&amp;nbsp;Microsoft.PowerBI.Api.V2.Models&amp;nbsp;namespace and i cannot find a constructor where i can pass in a list of datasets, it seems the dataset property is a string. Do you know if i can pass a list with a seperator in this string?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Leroy&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 15:07:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2665405#M37568</guid>
      <dc:creator>LeroyM</dc:creator>
      <dc:date>2022-07-27T15:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error generating an embed token with a composite model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2666965#M37580</link>
      <description>&lt;P&gt;Seems like you're using an old version of Power BI C# SDK which is deprecated AFAIK, see here from 2.5 years ago:&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/announcing-power-bi-apis-net-sdk-v3/" target="_blank" rel="noopener"&gt;Announcing Power BI APIs .NET SDK v3 | Microsoft Power BI Blog | Microsoft Power BI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The latest package is here: &lt;A href="https://www.nuget.org/packages/Microsoft.PowerBI.Api/" target="_blank" rel="noopener"&gt;NuGet Gallery | Microsoft.PowerBI.Api 4.9.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From the Readme in github repo:&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-CSharp" target="_blank" rel="noopener"&gt;https://github.com/Microsoft/PowerBI-CSharp :&lt;/A&gt;&lt;/P&gt;&lt;H2&gt;Install-Package Microsoft.PowerBI.Api&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 09:19:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-generating-an-embed-token-with-a-composite-model/m-p/2666965#M37580</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2022-07-28T09:19:13Z</dc:date>
    </item>
  </channel>
</rss>

