<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Power API export image error: “couldn't load the model schema associated with this report” in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-API-export-image-error-couldn-t-load-the-model-schema/m-p/4017418#M53801</link>
    <description>&lt;P&gt;&lt;BR /&gt;Refresh the dataset in Power BI Service and check for any refresh errors.&lt;BR /&gt;Review and verify all data sources connections and queries in Power BI Desktop.&lt;BR /&gt;Republish the report to Power BI Service and test the export functionality again.&lt;BR /&gt;Check Power BI Service health status for any ongoing issues or maintenance&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2024 01:17:55 GMT</pubDate>
    <dc:creator>VN999</dc:creator>
    <dc:date>2024-07-01T01:17:55Z</dc:date>
    <item>
      <title>Power API export image error: “couldn't load the model schema associated with this report”</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-API-export-image-error-couldn-t-load-the-model-schema/m-p/4015955#M53783</link>
      <description>&lt;P&gt;We are trying to use &lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/?redirectedfrom=MSDN" target="_self"&gt;Power BI API&lt;/A&gt; to export our reports as .PNG images.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use a Service Principal as authentication to the API. The Service Principal is able to make API calls fine, but the exported images show the error message &lt;STRONG&gt;“couldn't load the model schema associated with this report. make sure you have a connection to the server, and try again”&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="exported images show error" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1123993iDBFC400934AE065E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nguyentrea89_0-1719587270502.png" alt="exported images show error" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;exported images show error&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Service, we connect the reports to our Azure SQL Managed Instance via on-prem gateway connection with OAuth authentication. Our reports use DirectQuery connection to pull data from our Azure SQL Database. The exported images work properly for Import connection, but there seems to be a problem when using DirectQuery.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there's something in Tenant settings that we need enabled?. Any suggestions are appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things we have tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Service Principal is added to the workspace as "Contributor"&lt;/LI&gt;&lt;LI&gt;Service Principal is added as an user of the gateway connection&lt;/LI&gt;&lt;LI&gt;Service Principal is given db reader permissions to our SQL Database (we tested the connection from SP to SQL Database in Azure Data Factory and it was able to pull data)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 15:59:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-API-export-image-error-couldn-t-load-the-model-schema/m-p/4015955#M53783</guid>
      <dc:creator>nguyen-tr-ea-89</dc:creator>
      <dc:date>2024-06-28T15:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Power API export image error: “couldn't load the model schema associated with this report”</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-API-export-image-error-couldn-t-load-the-model-schema/m-p/4017418#M53801</link>
      <description>&lt;P&gt;&lt;BR /&gt;Refresh the dataset in Power BI Service and check for any refresh errors.&lt;BR /&gt;Review and verify all data sources connections and queries in Power BI Desktop.&lt;BR /&gt;Republish the report to Power BI Service and test the export functionality again.&lt;BR /&gt;Check Power BI Service health status for any ongoing issues or maintenance&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 01:17:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-API-export-image-error-couldn-t-load-the-model-schema/m-p/4017418#M53801</guid>
      <dc:creator>VN999</dc:creator>
      <dc:date>2024-07-01T01:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Power API export image error: “couldn't load the model schema associated with this report”</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-API-export-image-error-couldn-t-load-the-model-schema/m-p/4021187#M53855</link>
      <description>&lt;DIV&gt;Thanks for the response! I tried your suggestions and it didn't work.&lt;BR /&gt;&lt;BR /&gt;I do have a few things to ask:&lt;BR /&gt;* It seems I can&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-to-file-in-group#identityblob" href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-to-file-in-group#identityblob" target="_blank" rel="noopener noreferrer"&gt;provide an OAuth 2.0 access token for Azure SQL in the body of the API call ExportToFileInGroup&lt;/A&gt;. I hyperlinked the doc, please give me your thoughts. I tried providing the access token but the images still show the error.&amp;nbsp;&lt;BR /&gt;* Maybe I need to grant the Service Principal these API permissions: Dashboard.Read.All, Report.Read.All, Dataset.Read.All?&lt;BR /&gt;* There's also something called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-multi-tenancy" target="_blank" rel="noopener noreferrer"&gt;Service principal profiles in Power BI Embedded&lt;/A&gt;, is this relevant to resolve the problem?&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Jul 2024 19:07:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-API-export-image-error-couldn-t-load-the-model-schema/m-p/4021187#M53855</guid>
      <dc:creator>nguyen-tr-ea-89</dc:creator>
      <dc:date>2024-07-02T19:07:45Z</dc:date>
    </item>
  </channel>
</rss>

