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
DirkVr
Frequent Visitor

Failed loading report when using Power BI Embedded : error 403

I started by looking at the AppOwnsDataStarterKit. I have incorporated the AppOwnsWebApi in our own back-end. I have created there a end-point which which I could retrieve the datamodel of a service priccipal profile (Get EmbeddedViewModel) 

Our front-end is built using Angular. In this Angular application I am calling the endpoint "Get EmbeddedViewModel)" (which nicely gives back a list of reports and also an embedtoken. This info is used to fill in the EmbedReportConfiguration. I am only interested in the first report.

       this._powerBIServiceProxy.retrieveEmbeddedModel().subscribe(vm => {this.viewModel = vm
            var report = this.viewModel.reports[0];
            this.reportConfig = {
                type: 'report',
                id: report.id,
                embedUrl: report.embedUrl,
                accessToken: this.viewModel.embedToken,
                tokenType: models.TokenType.Embed,
                permissions: models.Permissions.Read,
                viewMode: models.ViewMode.View,
                settings: {
                  layoutType: models.LayoutType.Master,
                  background: models.BackgroundType.Transparent,
                  panes: {
                    filters: { visible: false },
                    pageNavigation: { visible: true, position: models.PageNavigationPosition.Left }
                  }
                }
            }
 
When executing this code, I am getting an error message like this
DirkVr_0-1665143094453.png

 

I was hoping to see some more info in the technicalDetails, but... bad luck:-)

 

Any ideas what I could be doing wrong?

 
1 ACCEPTED SOLUTION
DirkVr
Frequent Visitor

Problem is solved. Issues was that the embed token was not correctly filled with the reports that I wanted to load. 

View solution in original post

5 REPLIES 5
DirkVr
Frequent Visitor

Problem is solved. Issues was that the embed token was not correctly filled with the reports that I wanted to load. 

I have the same problem,  can you explain me how do you resolve this problem?

Anonymous
Not applicable

Hi @DirkVr,

AFAIK, the HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it.

I'd like to suggest you extract the id of the embedded contents and corresponding tokens to test on the power bi embedded playground to confirm if the same issue appears:
Power BI Embedded Playground

Regards,

Xiaoxin Sheng

Hi,

 

I have tried it on the Power BI Embedded Playground and i get the same issue.

DirkVr
Frequent Visitor

Update : when looking at the requests going out, I see that the following request is giving a 403 : 

https://wabi-west-europe-d-primary-redirect.analysis.windows.net/explore/reports/4eac0570-d331-4847-...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

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.