<?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 QnA Embedding error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/532536#M16348</link>
    <description>&lt;P&gt;I followed the instructions to embedded QnA, but getting following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Uncaught Error: Attempted to embed component of type: qna but did not find any matching component. Please verify the type you specified is intended.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at Service.embedNew (service.ts:235)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at Service.embed (service.ts:210)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Error is thrown in below function in service.ts:&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;* Given a configuration based on a Power BI element, saves the component instance that reference the element for later lookup.&lt;BR /&gt;*&lt;BR /&gt;* @private&lt;BR /&gt;* &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/69498"&gt;@param&lt;/a&gt; {IPowerBiElement} element&lt;BR /&gt;* &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/69498"&gt;@param&lt;/a&gt; {embed.IEmbedConfiguration} config&lt;BR /&gt;* @returns {embed.Embed}&lt;BR /&gt;*/&lt;BR /&gt;private embedNew(element: IPowerBiElement, config: embed.IEmbedConfiguration): embed.Embed {&lt;BR /&gt;const componentType = config.type || element.getAttribute(embed.Embed.typeAttribute);&lt;BR /&gt;if (!componentType) {&lt;BR /&gt;throw new Error(`Attempted to embed using config ${JSON.stringify(config)} on element ${element.outerHTML}, but could not determine what type of component to embed. You must specify a type in the configuration or as an attribute such as '${embed.Embed.typeAttribute}="${Report.type.toLowerCase()}"'.`);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Saves the type as part of the configuration so that it can be referenced later at a known location.&lt;BR /&gt;config.type = componentType;&lt;/P&gt;&lt;P&gt;const Component = utils.find(component =&amp;gt; componentType === component.type.toLowerCase(), Service.components);&lt;BR /&gt;if (!Component) {&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;throw new Error(`Attempted to embed component of type: ${componentType} but did not find any matching component. Please verify the type you specified is intended.`);&lt;/FONT&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;const component = new Component(this, element, config);&lt;BR /&gt;element.powerBiEmbed = component;&lt;/P&gt;&lt;P&gt;this.addOrOverwriteEmbed(component, element);&lt;BR /&gt;return component;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreciate any help to resolve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Dheeraj&lt;/P&gt;</description>
    <pubDate>Wed, 03 Oct 2018 11:47:57 GMT</pubDate>
    <dc:creator>djuvvadi</dc:creator>
    <dc:date>2018-10-03T11:47:57Z</dc:date>
    <item>
      <title>QnA Embedding error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/532536#M16348</link>
      <description>&lt;P&gt;I followed the instructions to embedded QnA, but getting following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Uncaught Error: Attempted to embed component of type: qna but did not find any matching component. Please verify the type you specified is intended.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at Service.embedNew (service.ts:235)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at Service.embed (service.ts:210)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Error is thrown in below function in service.ts:&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;* Given a configuration based on a Power BI element, saves the component instance that reference the element for later lookup.&lt;BR /&gt;*&lt;BR /&gt;* @private&lt;BR /&gt;* &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/69498"&gt;@param&lt;/a&gt; {IPowerBiElement} element&lt;BR /&gt;* &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/69498"&gt;@param&lt;/a&gt; {embed.IEmbedConfiguration} config&lt;BR /&gt;* @returns {embed.Embed}&lt;BR /&gt;*/&lt;BR /&gt;private embedNew(element: IPowerBiElement, config: embed.IEmbedConfiguration): embed.Embed {&lt;BR /&gt;const componentType = config.type || element.getAttribute(embed.Embed.typeAttribute);&lt;BR /&gt;if (!componentType) {&lt;BR /&gt;throw new Error(`Attempted to embed using config ${JSON.stringify(config)} on element ${element.outerHTML}, but could not determine what type of component to embed. You must specify a type in the configuration or as an attribute such as '${embed.Embed.typeAttribute}="${Report.type.toLowerCase()}"'.`);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Saves the type as part of the configuration so that it can be referenced later at a known location.&lt;BR /&gt;config.type = componentType;&lt;/P&gt;&lt;P&gt;const Component = utils.find(component =&amp;gt; componentType === component.type.toLowerCase(), Service.components);&lt;BR /&gt;if (!Component) {&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;throw new Error(`Attempted to embed component of type: ${componentType} but did not find any matching component. Please verify the type you specified is intended.`);&lt;/FONT&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;const component = new Component(this, element, config);&lt;BR /&gt;element.powerBiEmbed = component;&lt;/P&gt;&lt;P&gt;this.addOrOverwriteEmbed(component, element);&lt;BR /&gt;return component;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreciate any help to resolve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Dheeraj&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 11:47:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/532536#M16348</guid>
      <dc:creator>djuvvadi</dc:creator>
      <dc:date>2018-10-03T11:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: QnA Embedding error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/533598#M16377</link>
      <description>&lt;P&gt;Here is the basic client-side code you need. Note you must include an array of dataset IDs. The irony here is that you can only pass a single dataset ID in the array as the support for embedding the QnA experience with two or more datasets is not there yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// Get data required for embedding
var datasetId = "5c82edbf-46a1-48f3-b337-3ef12c69a94b";
var embedUrl = "https://app.powerbi.com/qnaEmbed?groupId=54afb565-3935-47e1-9a89-67e48a78ca45";
var accessToken = "H4sIAAAAAAAEACWWxa7FCnJF_-VNHclMkXpgPGbmmZmZHeXfc9M93zWopdpL9T__WOk7zGnxz3__U8EzQUY04RjVWIYpMwKv6NR4U7FNHbCV1qbNUbN48dbg0PSQstyrkBXV25ahPKxc-7mfWFQhpoaJU0lA-wLlrOKr0lGwQmN-nLTffMaLJfVoh9M6ySHrgWtsEduTnVw6rAXR7tIuAhDpRhpqK5CzaL8Ex3YB9NS4168EEIrlYW1HfqJRkNRDoDs0NL7hNZvMLYV0_ejI5KeeiU4YcnT4fXK4EANuHU9BVq2EVoBSdPN6a-aVASuUiBrzCN_iC7gr3UZi-MHaO225PqY2J_rQvN6J7AMZfj-sTfnCFvDfocpLPt6YL_sCyw0wQ3lzx2rcZSk53A-eQQDx2R5DZKaTg6fNGXza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sUaLPqnp6uN23fGPleA6SWW_Po5L4eUJ3r5m4VdCSv5mRVJ1tQe_XWPKt7xryekToZzRWKdgENUxNFG0oRCepVgkLl0jpdr7qaIWaq9oaEFbXFNXtM5zNSnL2fzC_S1NucvBHOX8Vouyh159Ck1mRE6l1WKz_nXLbekqPcyv_YiWs9EqC7M55Wj8KDoXmBG_X3g8SGIrIAYJ3j3eOsTmcJn5CBhOh1vINhSpffWxToBESoWwUuMtTmRTE9kQI4IzJdHaLGb3llrhUPjRZUCXObVtgl7xDdVHr9ZvuoN7y86Pw5Ei3QTjlG8iEKbV1Wy0aoMNcUvcV__l6c6w873nBP7UK9SDmvwenRUn8fHOYf32OnhF0x28bBdqZR_aZWMncXxw_-hL4qDZYGOW5XM7HjmKuo6Ut4xPwpwOxoHzgqU9HlFHvxh8Zj6IL8c9i91XS17I8vDeD1lDjffrAgqHEfsPz6Rv9OyqRO32Euxo_42Gf_MWRNKlT3CEZSyBqFEnH_9_8__4fQpW8SNoLAAA=";

// Get models object to access enums for embed configuration
var models = window['powerbi-client'].models;

var config = {
  type: 'qna',
  tokenType: models.TokenType.Embed,
  accessToken: accessToken,
  embedUrl: embedUrl ,
  datasetIds: [ datasetId ],
  viewMode: models.QnaMode.Interactive
  //,  question: "What is sales&amp;nbsp;revenue by quarter and sales&amp;nbsp;region as stacked&amp;nbsp;area&amp;nbsp;chart"
};


// Get a reference to the embedded report HTML element
var embedContainer = document.getElementById('embedContainer');

// Embed the report and display it within the div container.
var embeddedObject = powerbi.embed(embedContainer, config);

&lt;/PRE&gt;&lt;P&gt;Also, if you are using the app-owns-data model with embed tokens, you must create the embed token by passing the target dataset ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public static QnaEmbeddingData GetQnaEmbeddingData() {

  PowerBIClient pbiClient = GetPowerBiClient();

  var dataset = pbiClient.Datasets.GetDatasetByIdInGroup(workspaceId, datasetId);

  string embedUrl = "https://app.powerbi.com/qnaEmbed?groupId=" + workspaceId;
  string datasetID = dataset.Id;

  GenerateTokenRequest generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "view");

  string embedToken = pbiClient.Datasets.GenerateTokenInGroup(workspaceId, 
                                                              dataset.Id, 
                                                              generateTokenRequestParameters).Token;

  return new QnaEmbeddingData {
    datasetId = datasetId,
    embedUrl = embedUrl,
    accessToken = embedToken
  };

}&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Oct 2018 12:11:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/533598#M16377</guid>
      <dc:creator>TedPattison</dc:creator>
      <dc:date>2018-10-04T12:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: QnA Embedding error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/533925#M16396</link>
      <description>&lt;P&gt;Thank you Ted Pattison for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, am using app-owns-data&amp;nbsp;&lt;SPAN&gt;model with embed tokens and the code you provided was helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the client-side code which throws&amp;nbsp;the error I reported initially.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;@{
    ViewData["Title"] = "QandA";
}
&amp;lt;script src="~/js/powerbi.js"&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;div id="qnaContainer" class="body-content" style="float:left;width:100%;display:block"&amp;gt;&amp;lt;/div&amp;gt;

&amp;lt;script&amp;gt;
    // Get data required for embedding
    var datasetId = "5c82edbf-46a1-48f3-b337-3ef12c69a94b";
    var embedUrl = "https://app.powerbi.com/qnaEmbed?groupId=54afb565-3935-47e1-9a89-67e48a78ca45";
    var accessToken = "H4sIAAAAAAAEACWWxa7FCnJF_-VNHclMkXpgPGbmmZ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9NNDNgXYS7rPhayBQvNzN6l63Kcv7-qg4Mj5S6856kDwJ-U5gFY65j2CWZ58re541Wftiy64zL_vxc_YCOMyDzaxg52g3KkfYWoAytE-vVLcU1btqEMbwrs4kF_rbejKNLzXS22mfyZ85bpQr3v_71z3_9w23vcsxq-f69OdyA6KjeMBNabDMmT7iAyQmzoed7v_P-Auhy2tdWlD7Xc4_TWz7O13Q2AQvHA6e0Bs3utK6ZpyfgPGF2rOfGbPac5n45hJf7_OKxyevbJJiAc_vUR-Gf73wUBqeKxhVIH2FPScz01ZEKuavEvHlcFbuFlCJBpPbpjBTGsFrFcCDtODIs9ng_i31ob21iXscTnuvJTHmU4irKPOvx0aXjzKLRj1vpd6KsUaLPqnp6uN23fGPleA6SWW_Po5L4eUJ3r5m4VdCSv5mRVJ1tQe_XWPKt7xryekToZzRWKdgENUxNFG0oRCepVgkLl0jpdr7qaIWaq9oaEFbXFNXtM5zNSnL2fzC_S1NucvBHOX8Vouyh159Ck1mRE6l1WKz_nXLbekqPcyv_YiWs9EqC7M55Wj8KDoXmBG_X3g8SGIrIAYJ3j3eOsTmcJn5CBhOh1vINhSpffWxToBESoWwUuMtTmRTE9kQI4IzJdHaLGb3llrhUPjRZUCXObVtgl7xDdVHr9ZvuoN7y86Pw5Ei3QTjlG8iEKbV1Wy0aoMNcUvcV__l6c6w873nBP7UK9SDmvwenRUn8fHOYf32OnhF0x28bBdqZR_aZWMncXxw_-hL4qDZYGOW5XM7HjmKuo6Ut4xPwpwOxoHzgqU9HlFHvxh8Zj6IL8c9i91XS17I8vDeD1lDjffrAgqHEfsPz6Rv9OyqRO32Euxo_42Gf_MWRNKlT3CEZSyBqFEnH_9_8__4fQpW8SNoLAAA=";

    // Get models object to access enums for embed configuration
    var models = window['powerbi-client'].models;

    var config = {
        type: 'qna',
        tokenType: models.TokenType.Embed,
        accessToken: accessToken,
        embedUrl: embedUrl,
        datasetIds: [datasetId],
        viewMode: 1&lt;BR /&gt;//models.QnAMode.Interactive
        //,  question: "What is sales revenue by quarter and sales region as stacked area chart"
    };


    // Get a reference to the embedded report HTML element
    var embedContainer = document.getElementById('qnaContainer');

    // Embed the report and display it within the div container.
    var embeddedObject = powerbi.embed(embedContainer, config);

&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Uncaught Error: Attempted to embed component of type: qna but did not find any matching component. Please verify the type you specified is intended.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at Service.embedNew (service.ts:235)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;at Service.embed (service.ts:210)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="attempted to embed component of type:" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/124017i3628EE857BD2D403/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="attempted to embed component of type:" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;attempted to embed component of type:&lt;/span&gt;&lt;/span&gt;&lt;/FONT&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;&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;Embedding of Reports and Dashboards work fine. Its just the QnA which has this issue, and makes me think if I need to include anything more&amp;nbsp;than powerbi.js ?&lt;/P&gt;&lt;PRE&gt;&amp;lt;script src="~/js/powerbi.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Dheeraj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 17:56:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/533925#M16396</guid>
      <dc:creator>djuvvadi</dc:creator>
      <dc:date>2018-10-04T17:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: QnA Embedding error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/533933#M16397</link>
      <description>&lt;P&gt;Is your version of &lt;STRONG&gt;powerbi.js&lt;/STRONG&gt; up to date? Could it be you are using an older version of powerbi.js before the qna support was added?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current version is v2.6.5&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 18:07:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/533933#M16397</guid>
      <dc:creator>TedPattison</dc:creator>
      <dc:date>2018-10-04T18:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: QnA Embedding error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/533972#M16400</link>
      <description>&lt;P&gt;That was it, I was always using Nuget to update the PowerBI.Javascript to latest but didn't check the actual powerbi.js which was&amp;nbsp;v2.3.1. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now&amp;nbsp;QnA object seems to render but there is an 401 - Unauthorized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QnA embedded" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/124028iAD7A88F28A603077/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="QnA embedded" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;QnA embedded&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="401 - Unauthorized" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/124029iE3075B91D3F9563A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="401 - Unauthorized" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;401 - Unauthorized&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 19:37:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/533972#M16400</guid>
      <dc:creator>djuvvadi</dc:creator>
      <dc:date>2018-10-04T19:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: QnA Embedding error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/534062#M16405</link>
      <description>&lt;P&gt;Are you supplying server-side code to generate an access token like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;GenerateTokenRequest generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "view");

  string embedToken = pbiClient.Datasets.GenerateTokenInGroup(workspaceId, 
                                                              dataset.Id, 
                                                              generateTokenRequestParameters).Token;&lt;/PRE&gt;&lt;P&gt;Make sure the dataset id in this code which generates the embed token matches is the same dataset id that you are using in the client-side embed configuration to display the Q&amp;amp;A experience. That would be my first guess at what is wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 21:22:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/534062#M16405</guid>
      <dc:creator>TedPattison</dc:creator>
      <dc:date>2018-10-04T21:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: QnA Embedding error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/534149#M16413</link>
      <description>&lt;P&gt;Yes, I do supply server-side code to generate access:&lt;/P&gt;&lt;PRE&gt;var tokenResponse = await client.Datasets.GenerateTokenInGroupAsync(firstPBIGroupID,
                                                                    dataset.Id, &lt;BR /&gt;                                                                    generateTokenRequestParameters);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; // Generate Embed Configuration.&lt;BR /&gt; result.EmbedToken = tokenResponse;&lt;BR /&gt; result.EmbedUrl = "https://app.powerbi.com/qnaEmbed?groupId=" + firstPBIGroupID; &lt;BR /&gt; result.Id = dataset.Id; &lt;BR /&gt;&lt;BR /&gt;return View(result);&lt;BR /&gt;
&lt;/PRE&gt;&lt;P&gt;client-side:&lt;/P&gt;&lt;PRE&gt;   // Read embed application token from Model
    var accessToken = "@Model.EmbedToken.Token";

    // Read embed URL from Model
    var embedUrl = "@Html.Raw(Model.EmbedUrl)";

    // Read dataset Id from Model
    var embedDatasetId = "@Model.Id";

    // Get models. models contains enums that can be used.
    var models = window['powerbi-client'].models;

    // Embed configuration used to describe the what and how to embed.
    var config = {
        type: 'qna',
        tokenType: models.TokenType.Embed,
        accessToken: accessToken,
        embedUrl: embedUrl,
        datasetIds: [embedDatasetId],
        viewMode: models.QnaMode.Interactive
    };

    // Get a reference to the embedded Q&amp;amp;A HTML element
    var qnaContainer = $('#qnaContainer')[0];

    // Embed the QNA and display it within the div container.
    var qna = powerbi.embed(qnaContainer, config);&lt;/PRE&gt;&lt;P&gt;I tried different datasets but all have the same issue, I even made sure the powerbi pro-user who is used for access is given "Read and Reshare" access.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 00:56:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/534149#M16413</guid>
      <dc:creator>djuvvadi</dc:creator>
      <dc:date>2018-10-05T00:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: QnA Embedding error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/640825#M18761</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to explore the functionality of Power BI Q&amp;amp;A. I need to perform Q&amp;amp;A on 2 or more datasets in the Power BI workspace. However, I am unable to do so.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the comment "&lt;SPAN&gt;Here is the basic client-side code you need. Note you must include an array of dataset IDs. The irony here is that you can only pass a single dataset ID in the array as the support for embedding the QnA experience with two or more datasets is not there yet.&lt;/SPAN&gt;", could you let me know if the feature for embedding QnA experience for multiple datasets is implemented in the Power BI embedded Service?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 00:17:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/QnA-Embedding-error/m-p/640825#M18761</guid>
      <dc:creator>lkj</dc:creator>
      <dc:date>2019-03-09T00:17:22Z</dc:date>
    </item>
  </channel>
</rss>

