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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.