Forum Discussion
Export data from custom Visuals is not working
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.
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.- satwik_gorlaman9 months agoRegular Visitor
Hi V-yubandi-msft ,
After extensive troubleshooting, I discovered that the issue I was due to Power BI's limitation.
I've shared this idea in powerbi board hoping the Power BI team considers adding support for custom visuals to download a file for embeded env in future updates. It would greatly enhance flexibility and enterprise integration capabilities.- V-yubandi-msft9 months agoCommunity Support
Thanks for the update, and I appreciate you taking the time to investigate this further. It’s great to hear that you have already shared the idea in the Power BI Ideas forum. That’s the best way to bring visibility to the product team for future feature considerations.
Please feel free to share the link to the idea here so others can support it. If there’s anything else we can help with in the meantime, just let me know.
Regards,
Yugandhar.