Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
cdemiguel
Regular Visitor

power Bi embed dashboard data doesnt appear outside power bi web

Hi,

i have a trouble with PowerBi, last friday i could see all embed pannels with data from my powerbi in my website,

today, i dunno why, i can't see the data but pannels are displaying, if i enter in powerbi online editor i can see it correctly,

 

outsideweb:

https://imgur.com/a/KmTvqIe

 

 

inside powerbi:

https://imgur.com/a/Cw9dLrv

 

 

 

i am not detecting any problem,

why is this happening?

thanks!!

 

rewards,

 

6 REPLIES 6
Marusyk
Advocate II
Advocate II

I have the same problem, this `https://wabi-west-europe-b-primary-redirect.analysis.windows.net/powerbi/metadata/models/5996213/?mo... returns 403 Forbidden 

as a result 

Marusyk_0-1734387197977.png

what could be the reason?

laurenta
Frequent Visitor

Hi,

 

It seems from the screenshot that you are using streaming tiles. Is it correct?

There was a bug with streaming tiles on dashboard embedded scenarios at the date of your post and it should be fixed now.

Are you still encountering the issue?

 

TedPattison
Microsoft Employee
Microsoft Employee

How are you embedding the dashboard?

 

Do you have an application that is able to refresh the access token (or embed token) when the page is refreshed?

 

Or did you possibly hardcode an access token or embed token into the page to implement Power BI embedding? If so, an embed token or access token will exprise after an hour.

Hi, 

i 'm refreshing access token in my dashboard every 59 minutes and also when my application is starting,

 

Generating credentials and accestoken in backend with c# and embeding it with javascript.

 

c# service

var credential = new UserPasswordCredential(User, Password);

// Authenticate using created credentials
var authenticationContext = new AuthenticationContext(AuthorityUrl);
var authenticationResult = await authenticationContext.AcquireTokenAsync(ResourceUrl, ClientId, credential);

 

var tokenCredentials = new TokenCredentials(authenticationResult.AccessToken, "Bearer");

var client = new PowerBIClient(new Uri(ApiUrl), tokenCredentials);

var dashboards = await client.Dashboards.GetDashboardsInGroupAsync(GroupId);

var dashboard = dashboards.Value.FirstOrDefault(x => x.Id == DashboardId);

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

var tokenResponse = await client.Dashboards.GenerateTokenInGroupAsync(GroupId, dashboard.Id, generateTokenRequestParameters);

var embedConfig = new EmbedConfig
{
EmbedToken = tokenResponse,
EmbedUrl = dashboard.EmbedUrl,
Id = dashboard.Id
};

return embedConfig;

 

javascript:

var models = window['powerbi-client'].models;
var permissions = models.Permissions.All;

var config = {
type: 'dashboard',
tokenType: models.TokenType.Embed,
accessToken: data.EmbedToken.Token,
embedUrl: data.EmbedUrl,
id: data.Id,
permissions: permissions,
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: true
}
};

var dashboardContainer = $('#embbedDashboard')[0];

dashboard = powerbi.embed(dashboardContainer, config);

dashboard.off("loaded");

 

Does the dashboard show correctly when you refresh the page with the dashboard?

 

You code is accessing the first dashboard in the target workspace. Is it possible you added a new dashbaord which is being access instead of the dashboard you had last Friday?

Hello,

when i refresh webpage i see the same dashboard, iframe loaded but not datalayers or contents loaded,

i didnt change anything about code in my workspace, iframe is loading but... i think something is happening with permissions...

 

the only errors i am seeing are:

 

wabi-north-europe-redirect.analysis.windows.net/powerbi/metadata/models/4893449/?modelOptions=Default:1 Failed to load resource: the server responded with a status of 401 (Unauthorized)

 

thanks,

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.