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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
khregs
Advocate III
Advocate III

PBI Embedded App Owns Data - Export Data from visual to Excel fails with 403 Forbidden error

Hi,

 

My team is building a web app with embedded Power BI reports using the app-owns-data method with service principal authentication.

 

One key feature for our users is the ability export data from a visual to Excel. Clicking the ellipsis > Export data function on a visual displays the Export Data dialog box, but when the "Excel" option is chosen, the resulting file is not downloaded to the browser. Note the "CSV" option does work as expected.

 

F12 devtools indicate the service endpoint (https://wabi-canada-central-redirect.analysis.windows.net/export/xlsx) returns a 403 Forbidden error with response message "API is not accessible for application".

 

Can anyone on the forum advise what the issue is here?

 

Thanks,
Craig

 

 

6 REPLIES 6
Anonymous
Not applicable

 

I have same issue. If I authenticate as a user I can do both. As a service principal, only csv works. The difference in the way how it does it:

https://wabi-canada-central-redirect.analysis.windows.net/export/xlsx
for excel and this one for csv
https://wabi-canada-central-redirect.analysis.windows.net/explore/querydata

 

I suspect that my service principal is missing some permissions but can't figure out which one.

Anonymous
Not applicable

In my case the issue was caused by using Service Principal account. According to the support, this option has been in preview and will be GA sometime in May. 

Hi @Anonymous 

Apologies for not replying back sooner...

Yes! My team just got back to looking at this problem last week and we were able to make it work by removing the Service Principal authentication and using Master User method instead. Not ideal, but at least it works.

Thanks for relaying the news that Service Principal will be GA later this month. Will keep my eyes open for the announcement.

Cheers,
Craig

Hi @khregs / @Anonymous  ,

 

This is because you are trying to call some Reports/Dashboards that are in My Workspace using the SPN autentication. Currently this is the known limiation for SPN

 

https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal#considerations-and-limitations

 

Capture.JPG

 

 

You have to use Master account approach in this kind of situation.

 

 

Hi,

Thanks for the reply. I forgot about this one 🙂

First, the reports in question were not in My Workspace, but this is good advice for anyone else who stumbles across this thread. 

Second, the Excel export functionality has been working as expected with SP auth for a while now. I think the issue fixed iteself last May when SP auth went to GA status. Can't remember specifics now. 

Thanks again,

Craig

khregs
Advocate III
Advocate III

Note that exporting to Excel works perfectly well from the demo app shown here:

https://fleetdemoapp.azurewebsites.net/ 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.