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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.