<?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: Error when calling Notebook from Rest API in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-calling-Notebook-from-Rest-API/m-p/4906343#M14200</link>
    <description>&lt;P&gt;I add the service principal as Contributor in "Manage access" and it's good now.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add-access.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1317818i35D5D1A76AA7F887/image-size/medium?v=v2&amp;amp;px=400" role="button" title="add-access.png" alt="add-access.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Sat, 20 Dec 2025 22:46:11 GMT</pubDate>
    <dc:creator>qnguyen12</dc:creator>
    <dc:date>2025-12-20T22:46:11Z</dc:date>
    <item>
      <title>Error when calling Notebook from Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-calling-Notebook-from-Rest-API/m-p/4905216#M14155</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I created a Notebook and ran it manually without issues. The Notebook executes an AI function (ai.classify), accepts input parameters, and then inserts the results into the Lakehouse.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I encounter a problem when using the REST API. I created a Service Principal and added the scopes as instructed on the website (&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/core/job-scheduler/run-on-demand-item-job?tabs=HTTP" target="_blank" rel="noopener"&gt;Job Scheduler - Run On Demand Item Job - REST API (Core) | Microsoft Learn&lt;/A&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In &lt;EM&gt;View Recent Runs&lt;/EM&gt;, the status shows &lt;STRONG&gt;Success&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="success-run.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1317573iAF090537C693E642/image-size/medium?v=v2&amp;amp;px=400" role="button" title="success-run.png" alt="success-run.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I check the run details, I see the following error:&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;Spark_System_MetaStore_UnableToFetchMWCToken&lt;/EM&gt; (Error inserting data using the Metastore. The Metastore keeps track of tables and views used by Spark. This error typically means that your code referred to a table or view that did not exist, or a column within a table or view that does not exist. 1. Ensure the table or view you are referring to exists. 2. Ensure all columns that that are being referenced in the insert exist in the target tables. 3. Check the logs for this Spark application. Inspect the logs for a clearer indication of which table relation is causing this issue.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1317575i3FE7E9223AEE6E5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;If I use the bearer token of my account (not service principal), the run is good.&lt;/P&gt;&lt;P&gt;I’m wondering which scope or additional step I need to configure to ensure the run completes successfully.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 23:50:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-calling-Notebook-from-Rest-API/m-p/4905216#M14155</guid>
      <dc:creator>qnguyen12</dc:creator>
      <dc:date>2025-12-18T23:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling Notebook from Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-calling-Notebook-from-Rest-API/m-p/4905242#M14157</link>
      <description>&lt;P&gt;I added permission to lakehouse for the service princial but got new errors&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="second-error.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1317579iCF4049FD61EF49FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="second-error.png" alt="second-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 01:17:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-calling-Notebook-from-Rest-API/m-p/4905242#M14157</guid>
      <dc:creator>qnguyen12</dc:creator>
      <dc:date>2025-12-19T01:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling Notebook from Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-calling-Notebook-from-Rest-API/m-p/4905946#M14187</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1475216"&gt;@qnguyen12&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like you still need to add permissions to the service principal on the ADLS Gen 2 storage in Azure.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using an external ADLS Gen 2 storage area outside of Fabric?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 15:00:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-calling-Notebook-from-Rest-API/m-p/4905946#M14187</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2025-12-19T15:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling Notebook from Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-calling-Notebook-from-Rest-API/m-p/4906083#M14197</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1340679"&gt;@tayloramy&lt;/a&gt;&amp;nbsp;, I don't use ADLS Gen 2 storage area outside of Fabric.&lt;BR /&gt;I tried to add Azure Data Lake permission but failed because I don't use the service in Azure?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grant-admin-consent-error.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1317722iF2B68FB4DFA4A41C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="grant-admin-consent-error.png" alt="grant-admin-consent-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 21:06:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-calling-Notebook-from-Rest-API/m-p/4906083#M14197</guid>
      <dc:creator>qnguyen12</dc:creator>
      <dc:date>2025-12-19T21:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling Notebook from Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-calling-Notebook-from-Rest-API/m-p/4906343#M14200</link>
      <description>&lt;P&gt;I add the service principal as Contributor in "Manage access" and it's good now.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add-access.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1317818i35D5D1A76AA7F887/image-size/medium?v=v2&amp;amp;px=400" role="button" title="add-access.png" alt="add-access.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 20 Dec 2025 22:46:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-calling-Notebook-from-Rest-API/m-p/4906343#M14200</guid>
      <dc:creator>qnguyen12</dc:creator>
      <dc:date>2025-12-20T22:46:11Z</dc:date>
    </item>
  </channel>
</rss>

