<?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 Job Instance API returning inconsistent and incorrect results in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Job-Instance-API-returning-inconsistent-and-incorrect-results/m-p/4719693#M7948</link>
    <description>&lt;P&gt;The &lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/core/job-scheduler/list-item-job-instances" target="_self"&gt;List Job Instances&lt;/A&gt;&amp;nbsp;API appears to be returning inconsistent and incorrect results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I call the List Job Instances endpoint from my "Master" pipeline to get its job instances, and I get a set of records back which includes the current run.&lt;/P&gt;&lt;P&gt;URL for web activity is&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.fabric.microsoft.com/v1/workspaces/" target="_blank"&gt;https://api.fabric.microsoft.com/v1/workspaces/&lt;/A&gt;&lt;EM&gt;{workspaceId}&lt;/EM&gt;/items/&lt;EM&gt;{master&amp;nbsp;pipeline id}&lt;/EM&gt;/jobs/instances&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The current run of "Master" has a status of "NotStarted".&lt;/P&gt;&lt;P&gt;It must have started - otherwise the Web activity would not have executed!!!&lt;/P&gt;&lt;P&gt;So there appears to be a delay between the current pipeline status and the status being returned by the API.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue 2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I copy the Web activity which calls the API into a pipeline called "Child".&lt;/P&gt;&lt;P&gt;The Web activities in Master and Child use &lt;U&gt;the exact same URL&lt;/U&gt; - same workspace id and Master pipeline id.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I add an Invoke Pipeline (Legacy) to Master and get it to run Child in addition to its own Web activity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Web activity in Master returns the current run, with a status of "NotStarted" - Issue 1 above.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Web activity in Child does &lt;U&gt;not&lt;/U&gt; include the current run, only completed runs.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On multiple attempts, I cannot get the Master run to be included in the API response called from Child.&lt;/P&gt;&lt;P&gt;Any clues as to why this would be? Is the response of the API dependent on the pipeline it gets called from?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hmmm.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 11:10:24 GMT</pubDate>
    <dc:creator>dafad_dew</dc:creator>
    <dc:date>2025-06-04T11:10:24Z</dc:date>
    <item>
      <title>Job Instance API returning inconsistent and incorrect results</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Job-Instance-API-returning-inconsistent-and-incorrect-results/m-p/4719693#M7948</link>
      <description>&lt;P&gt;The &lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/core/job-scheduler/list-item-job-instances" target="_self"&gt;List Job Instances&lt;/A&gt;&amp;nbsp;API appears to be returning inconsistent and incorrect results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I call the List Job Instances endpoint from my "Master" pipeline to get its job instances, and I get a set of records back which includes the current run.&lt;/P&gt;&lt;P&gt;URL for web activity is&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.fabric.microsoft.com/v1/workspaces/" target="_blank"&gt;https://api.fabric.microsoft.com/v1/workspaces/&lt;/A&gt;&lt;EM&gt;{workspaceId}&lt;/EM&gt;/items/&lt;EM&gt;{master&amp;nbsp;pipeline id}&lt;/EM&gt;/jobs/instances&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The current run of "Master" has a status of "NotStarted".&lt;/P&gt;&lt;P&gt;It must have started - otherwise the Web activity would not have executed!!!&lt;/P&gt;&lt;P&gt;So there appears to be a delay between the current pipeline status and the status being returned by the API.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue 2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I copy the Web activity which calls the API into a pipeline called "Child".&lt;/P&gt;&lt;P&gt;The Web activities in Master and Child use &lt;U&gt;the exact same URL&lt;/U&gt; - same workspace id and Master pipeline id.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I add an Invoke Pipeline (Legacy) to Master and get it to run Child in addition to its own Web activity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Web activity in Master returns the current run, with a status of "NotStarted" - Issue 1 above.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Web activity in Child does &lt;U&gt;not&lt;/U&gt; include the current run, only completed runs.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On multiple attempts, I cannot get the Master run to be included in the API response called from Child.&lt;/P&gt;&lt;P&gt;Any clues as to why this would be? Is the response of the API dependent on the pipeline it gets called from?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hmmm.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:10:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Job-Instance-API-returning-inconsistent-and-incorrect-results/m-p/4719693#M7948</guid>
      <dc:creator>dafad_dew</dc:creator>
      <dc:date>2025-06-04T11:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Job Instance API returning inconsistent and incorrect results</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Job-Instance-API-returning-inconsistent-and-incorrect-results/m-p/4721195#M7961</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="903534" data-lia-user-login="dafad_dew" class="lia-mention lia-mention-user"&gt;dafad_dew&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching MS Fabric community support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is possibly a generic issue tied to distributed metadata synchronization&amp;nbsp;in distributed systems (like Microsoft Fabric) where data updates (such as job status) don’t instantly reflect across all parts of the system. Instead, changes "eventually" reach a consistent state after a short delay.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try below troubleshooting steps and let me know if this helps:&lt;/P&gt;
&lt;UL&gt;
&lt;LI data-start="1686" data-end="1752"&gt;Add a short delay&amp;nbsp;before calling the API. Or use retry logic to check again after a few seconds if the status doesn't look correct&lt;/LI&gt;
&lt;LI data-start="1686" data-end="1752"&gt;Avoid relying on real-time visibility of job status from outside the pipeline that's running.&amp;nbsp;due to eventual consistency you may not get accurate results. this relay on&amp;nbsp;how job metadata is propagated within Fabric&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Prashanth Are&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MS Fabric community support&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post helps, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly and give&amp;nbsp;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&amp;nbsp;if helped you resolve your query&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 10:05:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Job-Instance-API-returning-inconsistent-and-incorrect-results/m-p/4721195#M7961</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-06-05T10:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Job Instance API returning inconsistent and incorrect results</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Job-Instance-API-returning-inconsistent-and-incorrect-results/m-p/4726480#M7981</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="903534" data-lia-user-login="dafad_dew" class="lia-mention lia-mention-user"&gt;dafad_dew&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;SPAN&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the issue got resolved? or let us know if you need any further assistance here?&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Prashanth Are&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MS Fabric community support&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 04:56:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Job-Instance-API-returning-inconsistent-and-incorrect-results/m-p/4726480#M7981</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-06-10T04:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Job Instance API returning inconsistent and incorrect results</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Job-Instance-API-returning-inconsistent-and-incorrect-results/m-p/4731778#M8016</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/903534" target="_blank"&gt;@dafad_dew&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;SPAN&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the issue got resolved? or let us know if you need any further assistance here?&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Prashanth Are&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MS Fabric community support&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 15:50:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Job-Instance-API-returning-inconsistent-and-incorrect-results/m-p/4731778#M8016</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-06-13T15:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Job Instance API returning inconsistent and incorrect results</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Job-Instance-API-returning-inconsistent-and-incorrect-results/m-p/4733837#M8040</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="903534" data-lia-user-login="dafad_dew" class="lia-mention lia-mention-user"&gt;dafad_dew&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the issue got resolved? or let us know if you need any further assistance here?&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Prashanth Are&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MS Fabric community support&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 16:05:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Job-Instance-API-returning-inconsistent-and-incorrect-results/m-p/4733837#M8040</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-06-16T16:05:25Z</dc:date>
    </item>
  </channel>
</rss>

