<?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: monitoring notebook via API in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/monitoring-notebook-via-API/m-p/4658369#M8692</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/921682"&gt;@Yacine911&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The response from the POST request to run a notebook will not include a field like named job Instance Id. But we can use the rootActivityId which we get from the response to monitor the notebook's execution status.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run this below to get the rootActivityId:&lt;/P&gt;
&lt;P&gt;POST &lt;A href="https://api.fabric.microsoft.com/v1/workspaces/%7bworkspaceId%7d/items/%7bnotebookId%7d/jobs/instances" target="_blank"&gt;https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{notebookId}/jobs/instances&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run this below one to get the status:&lt;/P&gt;
&lt;P&gt;GET &lt;A href="https://api.fabric.microsoft.com/v1/workspaces/%7bworkspaceId%7d/items/%7bnotebookId%7d/jobs/instances/%7brootActivityId%7d" target="_blank"&gt;https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{notebookId}/jobs/instances/{rootActivityId}&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;{workspaceId} – your workspace Id&lt;/P&gt;
&lt;P&gt;{notebookId} – the notebook item Id&lt;/P&gt;
&lt;P&gt;{rootActivityId} – from the POST response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;Accepting as solution&amp;nbsp;&lt;/STRONG&gt;to help the other members find it more quickly,&amp;nbsp;don't forget to give a&amp;nbsp;&lt;STRONG&gt;"Kudos"&lt;/STRONG&gt;&amp;nbsp;– I’d truly appreciate it!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
    <pubDate>Fri, 18 Apr 2025 05:31:38 GMT</pubDate>
    <dc:creator>v-achippa</dc:creator>
    <dc:date>2025-04-18T05:31:38Z</dc:date>
    <item>
      <title>monitoring notebook via API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/monitoring-notebook-via-API/m-p/4657546#M8673</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running a notebook using the Fabric API, and while the execution works fine, I haven't found a way to monitor its status. Specifically, I can't retrieve the Job Instance ID that would allow me to track the notebook's execution progress&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;POST &lt;A href="https://api.fabric.microsoft.com/v1/workspaces/XXXXX-XXXXX-XXXXXX/items/XXXXX-XXXXX-XXXXXX/jobs/instances?jobType=RunNotebook" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com/v1/workspaces/XXXXX-XXXXX-XXXXXX/items/XXXXX-XXXXX-XXXXXX/jobs/instances?jobType=RunNotebook&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is what i get&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"itemId":"xxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxxx",&lt;BR /&gt;"jobType":"RunNotebook",&lt;BR /&gt;"invokeType":"Manual",&lt;BR /&gt;"status":"NotStarted",&lt;BR /&gt;"failureReason":null,&lt;BR /&gt;"rootActivityId":"xxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxxx",&lt;BR /&gt;"startTimeUtc":"2025-04-17T12:50:18.000000Z",&lt;BR /&gt;"endTimeUtc":null,&lt;BR /&gt;"ResponseHeaders":{&lt;BR /&gt;"Pragma":"no-cache",&lt;BR /&gt;"Transfer-Encoding":"chunked",&lt;BR /&gt;"Retry-After":"11",&lt;BR /&gt;"Strict-Transport-Security":"max-age=31536000; includeSubDomains",&lt;BR /&gt;"X-Frame-Options":"deny",&lt;BR /&gt;"X-Content-Type-Options":"nosniff",&lt;BR /&gt;"RequestId":"xxxxx-xxxxxx-xxxxxx-xxxxxx-xxxxxxx",&lt;BR /&gt;"Access-Control-Expose-Headers":"RequestId,Retry-After",&lt;BR /&gt;"Cache-Control":"no-store, must-revalidate, no-cache",&lt;BR /&gt;"Date":"Thu, 17 Apr 2025 12:51:13 GMT",&lt;BR /&gt;"Content-Type":"application/json; charset=utf-8"&lt;BR /&gt;},&lt;BR /&gt;"executionDuration":63&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 12:56:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/monitoring-notebook-via-API/m-p/4657546#M8673</guid>
      <dc:creator>Yacine911</dc:creator>
      <dc:date>2025-04-17T12:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring notebook via API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/monitoring-notebook-via-API/m-p/4658369#M8692</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/921682"&gt;@Yacine911&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The response from the POST request to run a notebook will not include a field like named job Instance Id. But we can use the rootActivityId which we get from the response to monitor the notebook's execution status.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run this below to get the rootActivityId:&lt;/P&gt;
&lt;P&gt;POST &lt;A href="https://api.fabric.microsoft.com/v1/workspaces/%7bworkspaceId%7d/items/%7bnotebookId%7d/jobs/instances" target="_blank"&gt;https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{notebookId}/jobs/instances&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run this below one to get the status:&lt;/P&gt;
&lt;P&gt;GET &lt;A href="https://api.fabric.microsoft.com/v1/workspaces/%7bworkspaceId%7d/items/%7bnotebookId%7d/jobs/instances/%7brootActivityId%7d" target="_blank"&gt;https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{notebookId}/jobs/instances/{rootActivityId}&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;{workspaceId} – your workspace Id&lt;/P&gt;
&lt;P&gt;{notebookId} – the notebook item Id&lt;/P&gt;
&lt;P&gt;{rootActivityId} – from the POST response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;Accepting as solution&amp;nbsp;&lt;/STRONG&gt;to help the other members find it more quickly,&amp;nbsp;don't forget to give a&amp;nbsp;&lt;STRONG&gt;"Kudos"&lt;/STRONG&gt;&amp;nbsp;– I’d truly appreciate it!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 05:31:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/monitoring-notebook-via-API/m-p/4658369#M8692</guid>
      <dc:creator>v-achippa</dc:creator>
      <dc:date>2025-04-18T05:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring notebook via API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/monitoring-notebook-via-API/m-p/4661206#M8745</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/921682"&gt;@Yacine911&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance.&lt;BR /&gt;If my response addressed, please mark it as "&lt;STRONG&gt;Accept as solution"&amp;nbsp;&lt;/STRONG&gt;and click "Yes" if you found it helpful.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 12:59:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/monitoring-notebook-via-API/m-p/4661206#M8745</guid>
      <dc:creator>v-achippa</dc:creator>
      <dc:date>2025-04-21T12:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring notebook via API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/monitoring-notebook-via-API/m-p/4663235#M8766</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;The rootActivityId didn’t work, but funnily enough, the id is back, and it worked using that.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 12:51:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/monitoring-notebook-via-API/m-p/4663235#M8766</guid>
      <dc:creator>Yacine911</dc:creator>
      <dc:date>2025-04-22T12:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring notebook via API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/monitoring-notebook-via-API/m-p/4663789#M8772</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/921682"&gt;@Yacine911&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the response, since the issue is resolved,&amp;nbsp;&lt;SPAN data-teams="true"&gt;I request you if any of the responses helped, kindly consider marking it as accept as solution or please mark the above post as accept as solution. This helps others in the community find it more easily.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 19:03:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/monitoring-notebook-via-API/m-p/4663789#M8772</guid>
      <dc:creator>v-achippa</dc:creator>
      <dc:date>2025-04-22T19:03:35Z</dc:date>
    </item>
  </channel>
</rss>

