The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now
HI,
I'm receiving an error below:
ERROR Error: Uncaught (in promise): Object: {"message":"LoadReportFailed","detailedMessage":"Fail to initialize - Could not resolve cluster","errorCode":"403","level":6,"technicalDetails":{"requestId":"c1bc94a6-42e8-3636-58c5-c8b52f6f4918"}} at A (reportEmbed.min.js:1) at A (reportEmbed.min.js:1) at reportEmbed.min.js:1 at e.invokeTask (reportEmbed.min.js:1) at Object.onInvokeTask (reportEmbed.min.js:1) at e.invokeTask (reportEmbed.min.js:1) at t.runTask (reportEmbed.min.js:1) at g (reportEmbed.min.js:1) at t.invokeTask (reportEmbed.min.js:1) at i.useG.invoke (reportEmbed.min.js:1)
And the response from server is 403 for https://wabi-east-asia-a-primary-redirect.analysis.windows.net/metadata/cluster
here is my code:
window.onload = function () { // Read embed application token from Model var accessToken = txtAccessToken; // Read embed URL from Model var embedUrl = "https://app.powerbi.com/reportEmbed"; //var embedUrl = "https://app.powerbi.com/reportEmbed?groupId=2f0da47c-9575-42b2-9f63-e524c60fae8b"; // Read dashboard Id from Model var embedReportId = "3c0f8978-b88e-4c6f-a771-ea4ad795c027"; var embedDashboardId = "c7149d1b-3238-4068-bd72-9dac6d9aa214"; // Get models. models contains enums that can be used. var models = window['powerbi-client'].models; var config = { type: 'report', tokenType: models.TokenType.Aad, accessToken: accessToken, embedUrl: embedUrl, viewMode: models.ViewMode.View, permissions: models.Permissions.All, id: embedReportId, }; // Get a reference to the embedded dashboard HTML element var reportContainer = $('#reportContainer')[0] ; // Embed the dashboard and display it within the div container. var report = powerbi.embed(reportContainer, config); }
Please help
Hello,
Can anyone please help me with this issue.
Nhan.
I am facing the same issue, tripple check my toiken id, report id yet keep getting this error.... 😞
Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.
User | Count |
---|---|
17 | |
2 | |
2 | |
2 | |
1 |
User | Count |
---|---|
19 | |
10 | |
5 | |
4 | |
3 |