Forum Discussion
Export data from custom Visuals is not working
Hi satwik_gorlaman ,
Thank you for reviewing those points. Since the download is still not working, could you provide some details about your setup? This information will help us identify the issue.
1. Which browser and version are you using?
2. Is the report embedded in a custom web app, or in a platform like Teams?
3. Are there any errors or warnings in the browser console when you try to export?
Sometimes, the problem relates to how the iframe is hosted or how the download is triggered, especially in environments that restrict pop ups or downloads.
Regards,
Yugandhar.
Thanks for your response.
Here are the browser details we’re using:
- Chrome: Version 141.0.7390.123 (Official Build) (64-bit)
- Microsoft Edge: Version 141.0.3537.99 (Official Build) (64-bit)
We’re working with custom visuals in Power BI accessed via Embedded Service Principal, and attempting to export data based on selected points on a map as a .csv file using:
powerbi.extensibility.IDownloadService → exportVisualsContent
This functionality works perfectly in:
- Power BI Service (app.powerbi.com)
- Power BI Desktop
However, it does not work in the embedded scenario.
We’ve verified the following:
- No errors or warnings appear in the browser console.
- Download and popup blockers have been disabled.
- Permissions and API configurations have been reviewed and adjusted.
Despite these efforts, we haven’t had any success with the export in embedded mode.
Please let us know if there are any additional steps or configurations we might be missing.
- V-yubandi-msft9 months agoCommunity Support
Hi satwik_gorlaman ,
Thanks a lot for sharing those details. Since the export works fine in Power BI Service and Desktop but not in the Embedded setup using a Service Principal, it looks like the issue is specific to how downloads are handled in that environment.
A few things you can double check.
1. Make sure it has both Export data and Download report permissions in the workspace.
2. Some browsers silently block file downloads from iframes on a different domain. If possible, try hosting the embed on the same domain.
3. Currently, download Service.exportVisualContent isn’t clearly documented as supported in Embedded scenarios with Service Principals. You could test the same setup using user delegated authentication to confirm if it works there.
Let us know once you’ve had a chance to check these points.
- satwik_gorlaman9 months agoRegular Visitor
Hi V-yubandi-msft ,
Thank you so much for your response. I am unable to download selected data from custom Visuals.
1. Make sure it has both Export data and Download report permissions in the workspace.-- Enabled
2. Some browsers silently block file downloads from iframes on a different domain. If possible, try hosting the embed on the same domain. -- can you please guide me on this?
3. Currently, download Service.exportVisualContent isn’t clearly documented as supported in Embedded scenarios with Service Principals. You could test the same setup using user delegated authentication to confirm if it works there.-- Yeah, seems so. what can I do further on this?
Regards,
G Satwik- V-yubandi-msft9 months agoCommunity Support
Hi satwik_gorlaman ,
Thanks for confirming those details and for double checking the permissions.Regarding 2nd point, Browsers can block file downloads that originate from an embedded iframe on a different domain than your main web app.
For example.Your web app → https://portal.contoso.com Power BI iframe → https://app.powerbi.comThis cross domain setup may prevent download pop-ups from appearing.
So, Try hosting the embedded report on the same domain as your main web app, or Use a reverse proxy so the iframe appears under your app’s domain.
Coming to 3rd point, The downloadService.exportVisualsContent API is not officially documented as being supported in Embedded scenarios with Service Principals. To determine if this is causing the issue.
Try to Test the same setup using user delegated authentication. If the download works with user auth but not with Service Principal, it confirms the limitation.
Hope this help.
Regards,
Yugandhar.