Forum Discussion

luanlopes's avatar
luanlopes
Advocate II
1 year ago
Solved

Error exporting report via API: ServerError_PremiumFilesErrors_OperationIsNotSupportedForPremiumFile

Hello, I'm encountering an error while trying to export Power BI reports via the API on behalf of clients who use our integrated solution. I'm using the following API endpoint:   POST https://ap...
  • ibarrau's avatar
    1 year ago

    Hi. Make sure your workspace has dedicated capacity enabled. Then, take a look at exporting limitations in order to check if you are missing something for this file:

    https://learn.microsoft.com/en-us/power-bi/create-reports/service-export-to-pbix#limitations-when-downloading-a-report-pbix-file

    For example, a common issue is: 

    • Reports that are based on a semantic model enabled for large semantic model storage format cannot be downloaded using REST APIs. Use the Power BI Service to download these reports.

    Otherwise you will need to downsize the size with good practices.

    I hope that helps,

  • Poojara_D12's avatar
    1 year ago

    Hi luanlopes 

    The error you're encountering — ServerError_PremiumFilesErrors_OperationIsNotSupportedForPremiumFilesModel — typically occurs when attempting to export a Power BI report via the REST API that is based on a large semantic model published as a .pbip or Power BI file (PBIP) using the Power BI Service, particularly when the model exceeds a certain size threshold (like your 3GB model). These large datasets are handled differently under the hood, especially when they are stored using Premium Files, a newer storage format optimized for large models in Power BI Premium. Unfortunately, as of now, export operations using the Export API endpoint are not supported for models stored in Premium Files format, which is why you’re seeing this error. Even though your workspace is Premium-backed and other smaller reports export fine, this specific report likely triggers this limitation due to its size and storage format. Currently, Microsoft does not support exporting such large reports through this API method. As a workaround, consider reducing the model size or redesigning the report to use a smaller dataset if export functionality is essential. You can also monitor for updates to the Power BI API, as Microsoft may add support for Premium Files export in the future.