Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17897

Trouble migrating to new power bi embedded - 403 forbidden

$
0
0

Hi there,

 

I'm having some issues migrating to the new Power BI embedded from workspace collections. 

 

Reports were rendering fine using the javascript API. I was making some fine tuning changes, such as to the filter panel settings, and nav content settings, when suddenly I was unable to render reports. It was like the door was closed!

 

I set the permissions in Azure, granted them etc. I've had no issue generating the report numerous times, though now I cannot.

 

My code below, and the message.

 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js"></script><script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/powerbi-client/dist/powerbi.js"></script><script type="text/javascript">
window.onload = function () {

 // Read embed application token from Model
    var accessToken = "HIDDEN";

    // Read embed URL from Model
    var embedUrl = "https://app.powerbi.com/reportEmbed?reportId=[hidden]&groupId=[hidden]";

    // Read dashboard Id from Model
    var embedReportId = "HIDDEN";

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

    var config = {
        height: 800,
        type: 'report',
        tokenType: models.TokenType.Aad,
        accessToken: accessToken,
        embedUrl: embedUrl,
        id: embedReportId ,
        pageView: "oneColumn",
		settings: {
        filterPaneEnabled: false,
	navContentPaneEnabled: false

    }
    };
    // Get a reference to the embedded dashboard HTML element
    var dashboardContainer = $('#reportContainer')[0] ;
    // Embed the dashboard and display it within the div container.

var report = powerbi.embed(dashboardContainer, config);


}

</script><div id="reportContainer" style="height:680px"></div><p>loaded</p>


wabi-north-europe-redirect.analysis.windows.net/metadata/cluster:1 GET https://wabi-north-europe-redirect.analysis.windows.net/metadata/cluster 403 (Forbidden)
reportEmbed.min.js:1 OPTIONS https://dc.services.visualstudio.com/v2/track 0 ()


Viewing all articles
Browse latest Browse all 17897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>