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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Export Report REST API returns error after Rebind report api

Hi,

 

I am rebinding a report to a new dataset by using Rebind REST api. I can see the report gets refreshed. Then I am trying to export that report by export Report REST api. But, I am getting the error "ExportPBIX_ModelessWorkbookNotFound". If I upload a pbix file and then export the report, it works fine. Can anyone please help in exporting the report after rebinding. I want it to be done programatically.

Any help will be appreciated!!!!

4 REPLIES 4

It sounds like the rebind succeeds, but the export is being triggered before the report's model is fully available. Try adding a delay or polling the report status after the Rebind API call before exporting. Also verify that the target dataset supports PBIX export and is in the same workspace. If you're already waiting, share your API sequence and timing—this may be a known backend synchronization issue rather than a problem with your code.

Did you check the Limitations section of Export Report API? It mentions a certain limitation of calling the API after rebind.

https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-report

Croc
New Member

Good it or bad, but it is documented:

 

> After calling Rebind Report, exporting a report with a Power BI service live connection isn't supported.

 

https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-report-in-group

Anonymous
Not applicable

Hello,

 

Did you ever find a solution? I'm stuck on the same boat as you were...

I am using the Powershell cmdlet Export-PowerBIReport to do  the exporting, but beforehands I use the REST API to rebind my report to a new dataset. The export only works on the first dataset, but never with the second, even if the report is updated on the PBI app.

 

The script basically goes like this:

1) Getting all the necessary infos (workspace,report and datasets IDs, etc)

2) A step to swap the dataset to the other one

3) Export the report

 

All steps work fine except for #3 and only for the case where the second dataset is in use.

Both my datasets have the same schema, they differ only by the number of entries and the values for each entry.

 

Thanks!

 

EDIT:

I stumbled upon something when trying to manually download the report from the app...

It will let me download the report as a .pbix when using the first dataset, but the option is greyed out when I try the same thing with the second dataset. The reason:

The Download report option (as .pbix) is only available for reports created in PBI desktop.

 

When I first uploaded the report on the PBI app, it was with the first dataset, hence it is valid.

I uploaded the second dataset as a standalone file,  which is then binded to the report.

So most likely the export can't work because the new dataset did not go through PBI deskop.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.