Forum Discussion

satwik_gorlaman's avatar
satwik_gorlaman
Regular Visitor
10 months ago

Export data from custom Visuals is not working

I have added a functionality using 'downloadService.exportVisualsContent'

* I am Able to export data using app.powerbiservice.com and PowerBi Desktop

* But Unable to download from Embeded API side. (Cloud)--pop-up to confirm download is not showing up 

Could you please help me out with this.

11 Replies

  • Hi satwik_gorlaman 

     

    Could you please check and try the following:

    • Power BI Embedded’s export/download relies on the browser’s ability to show pop-ups or trigger downloads.
    • Make sure your embed iframe isn’t missing required permissions like allow-downloads and allow-popups.
    • In your embed code, set the iframe sandbox attribute to include at least:
      • allow-scripts allow-same-origin allow-popups allow-downloads allow-forms
    • Some browsers and containers (e.g. Teams or browser settings) also block pop-ups by default, so check browser pop-up blockers.

    If your iframe or environment restricts downloads, the file download won't trigger even if the API call is successful. Adjust the embed settings accordingly and test in different browsers.

     

    🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.

    💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.

    🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.

    🔗 Curious to explore more? [Discover here].

    Let’s keep building smarter solutions together!

  • Hi grazitti_sapna 
    thanks for your response, all the above mentioned points were checked and everything is as mentioned. Still popup to download the file is not appeared. 

    • V-yubandi-msft's avatar
      V-yubandi-msft
      Community Support

      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.

      • satwik_gorlaman's avatar
        satwik_gorlaman
        Regular Visitor

        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.

  • Hi satwik_gorlaman , have you had a chance to review my latest reply? It should clarify things, but please let me know if you need any further explanation.

    Thank You

  • Hi satwik_gorlaman ,
    Could you let us know if your issue has been resolved or if you are still experiencing difficulties? Your feedback is valuable to the community and can help others facing similar problems.