We have a problem in our first try to embed Q&A dashboard feature.
Both the accessToken, embedUrl and the datasetIds are correct. We have checked it in the demo.
The error in console browser "uncaught exception: [object Object]" appears with the following code and only the default power bi dashboard loading icon is displayed.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><script src="../Scripts/jquery-3.2.1.js"></script><script src="../Scripts/powerbi.js"></script><title>Try</title</head><body><script type="text/javascript"> window.onload = function () { var models = window['powerbi-client'].models; var embedConfiguration = { type: 'qna', tokenType: models.TokenType.Embed, accessToken: 'H4sIAAAAAAAEACWWxw6saA...', embedUrl: 'https://app.powerbi.com//qnaEmbed?groupId=540ae43e-40f5-4d8a-8f39...', datasetIds: '4f8a276f-1288-4747-87c2-94865...', viewMode: models.QnaMode.Interactive }; var qnaContainer = $('#qnaContainer')[0]; var qna = powerbi.embed(qnaContainer, embedConfiguration); qna.off("loaded"); }</script> <div id="qnaContainer"></div></body></html>
Any ideas?