Forum Discussion
nguyen-tr-ea-89
2 years agoFrequent Visitor
Power API export image error: “couldn't load the model schema associated with this report”
We are trying to use Power BI API to export our reports as .PNG images. We use a Service Principal as authentication to the API. The Service Principal is able to make API calls fine, but the expo...
VN999
2 years agoResolver I
Refresh the dataset in Power BI Service and check for any refresh errors.
Review and verify all data sources connections and queries in Power BI Desktop.
Republish the report to Power BI Service and test the export functionality again.
Check Power BI Service health status for any ongoing issues or maintenance
- nguyen-tr-ea-892 years agoFrequent VisitorThanks for the response! I tried your suggestions and it didn't work.
I do have a few things to ask:
* It seems I can provide an OAuth 2.0 access token for Azure SQL in the body of the API call ExportToFileInGroup. I hyperlinked the doc, please give me your thoughts. I tried providing the access token but the images still show the error.
* Maybe I need to grant the Service Principal these API permissions: Dashboard.Read.All, Report.Read.All, Dataset.Read.All?
* There's also something called Service principal profiles in Power BI Embedded, is this relevant to resolve the problem?