<?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 Fabric data pipeline public REST API Query Activity Runs in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-data-pipeline-public-REST-API-Query-Activity-Runs/m-p/4328249#M6633</link>
    <description>&lt;P&gt;I am using Postman to call the the &lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/pipeline-rest-api#query-activity-runs" target="_self"&gt;Fabric data pipeline public REST API's&lt;/A&gt; to query activity runs. I keep getting an empty result set when calling the&amp;nbsp;&lt;SPAN&gt;queryactivityruns api using the pipeline job instance id, but the "Get item job instance" api returns correct results using the same job instance ID. Are these different ID's?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This returns the correct job instance (GET):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl --location --request GET &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://api.fabric.microsoft.com/v1/workspaces/{ws_id}/items/{pipeline_id}/jobs/instances/{job_instance_id" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com/v1/workspaces/{ws_id}/items/{pipeline_id}/jobs/instances/{job_instance_id&lt;/A&gt;}'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--header &lt;/SPAN&gt;&lt;SPAN&gt;'content-type: application/json'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--header &lt;/SPAN&gt;&lt;SPAN&gt;'Authorization: ••••••'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt; &lt;SPAN&gt;'{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This returns an empty result set (POST):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl --location &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://api.fabric.microsoft.com/v1/workspaces/{ws_id}/datapipelines/pipelineruns/{job_instance_id}/queryactivityruns" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com/v1/workspaces/{ws_id}/datapipelines/pipelineruns/{job_instance_id}/queryactivityruns&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--header &lt;/SPAN&gt;&lt;SPAN&gt;'content-type: application/json'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--header &lt;/SPAN&gt;&lt;SPAN&gt;'Authorization: ••••••'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt; &lt;SPAN&gt;'{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="3539" data-lia-user-login="kromerm" class="lia-mention lia-mention-user"&gt;kromerm&lt;/a&gt;, adding you for possible assistance since i saw you as a contributor for these API's.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 13 Dec 2024 18:23:55 GMT</pubDate>
    <dc:creator>mprewett</dc:creator>
    <dc:date>2024-12-13T18:23:55Z</dc:date>
    <item>
      <title>Fabric data pipeline public REST API Query Activity Runs</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-data-pipeline-public-REST-API-Query-Activity-Runs/m-p/4328249#M6633</link>
      <description>&lt;P&gt;I am using Postman to call the the &lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/pipeline-rest-api#query-activity-runs" target="_self"&gt;Fabric data pipeline public REST API's&lt;/A&gt; to query activity runs. I keep getting an empty result set when calling the&amp;nbsp;&lt;SPAN&gt;queryactivityruns api using the pipeline job instance id, but the "Get item job instance" api returns correct results using the same job instance ID. Are these different ID's?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This returns the correct job instance (GET):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl --location --request GET &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://api.fabric.microsoft.com/v1/workspaces/{ws_id}/items/{pipeline_id}/jobs/instances/{job_instance_id" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com/v1/workspaces/{ws_id}/items/{pipeline_id}/jobs/instances/{job_instance_id&lt;/A&gt;}'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--header &lt;/SPAN&gt;&lt;SPAN&gt;'content-type: application/json'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--header &lt;/SPAN&gt;&lt;SPAN&gt;'Authorization: ••••••'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt; &lt;SPAN&gt;'{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This returns an empty result set (POST):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl --location &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://api.fabric.microsoft.com/v1/workspaces/{ws_id}/datapipelines/pipelineruns/{job_instance_id}/queryactivityruns" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com/v1/workspaces/{ws_id}/datapipelines/pipelineruns/{job_instance_id}/queryactivityruns&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--header &lt;/SPAN&gt;&lt;SPAN&gt;'content-type: application/json'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--header &lt;/SPAN&gt;&lt;SPAN&gt;'Authorization: ••••••'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt; &lt;SPAN&gt;'{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="3539" data-lia-user-login="kromerm" class="lia-mention lia-mention-user"&gt;kromerm&lt;/a&gt;, adding you for possible assistance since i saw you as a contributor for these API's.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Dec 2024 18:23:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-data-pipeline-public-REST-API-Query-Activity-Runs/m-p/4328249#M6633</guid>
      <dc:creator>mprewett</dc:creator>
      <dc:date>2024-12-13T18:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric data pipeline public REST API Query Activity Runs</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-data-pipeline-public-REST-API-Query-Activity-Runs/m-p/4329929#M6640</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="900890" data-lia-user-login="mprewett" class="lia-mention lia-mention-user"&gt;mprewett&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It sounds like you're encountering an issue with the IDs used in your API calls. The job_instance_id used in the queryactivityruns API might be different from the one used in the Get item job instance API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are a few things to check:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Ensure that the job_instance_id you are using in both API calls is exactly the same. Sometimes, there might be a slight difference or typo that could cause the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Check the response data from the Get item job instance API to see if it includes any other IDs or references that might be needed for the queryactivityruns API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Ensure that your API token has the necessary permissions to access both endpoints. Sometimes, different endpoints might require different scopes or permissions.&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;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 02:02:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-data-pipeline-public-REST-API-Query-Activity-Runs/m-p/4329929#M6640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-16T02:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric data pipeline public REST API Query Activity Runs</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-data-pipeline-public-REST-API-Query-Activity-Runs/m-p/4730475#M8004</link>
      <description>&lt;P&gt;You need to provide something in the body, at least:&lt;BR /&gt;&lt;BR /&gt;{"lastUpdatedAfter":"2025-06-11T08:55:57.7992493Z","lastUpdatedBefore":"2025-06-12T08:55:57.7992676Z"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its very difficult to find in the documentation: &lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/pipeline-rest-api" target="_blank" rel="noopener"&gt;Fabric data pipeline public REST API - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I found a link to a similar question:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/answers/questions/569319/how-to-use-pagination-in-azure-data-factory-with-r" target="_blank" rel="noopener"&gt;How to use pagination in Azure Data factory with REST API - Microsoft Q&amp;amp;A&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is some additional info in the DataFactory documentation, where some things seem to be applicable to fabric:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/datafactory/activity-runs/query-by-pipeline-run?view=rest-datafactory-2018-06-01&amp;amp;tabs=HTTP" target="_blank" rel="noopener"&gt;Activity Runs - Query By Pipeline Run - REST API (Azure Data Factory) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:50:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-data-pipeline-public-REST-API-Query-Activity-Runs/m-p/4730475#M8004</guid>
      <dc:creator>larsaia</dc:creator>
      <dc:date>2025-06-12T15:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric data pipeline public REST API Query Activity Runs</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-data-pipeline-public-REST-API-Query-Activity-Runs/m-p/4730480#M8005</link>
      <description>&lt;P&gt;Thank you! Finding documentation on this was not easy.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:36:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-data-pipeline-public-REST-API-Query-Activity-Runs/m-p/4730480#M8005</guid>
      <dc:creator>mprewett</dc:creator>
      <dc:date>2025-06-12T15:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric data pipeline public REST API Query Activity Runs</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-data-pipeline-public-REST-API-Query-Activity-Runs/m-p/4730493#M8006</link>
      <description>&lt;P&gt;I stumbled over your question, while searching for a solution, to use paging for this endpoint. The Fabric documentation is incorrect. I made it work, with the help from the Data Factory documentation. The last issue is, that I'm unable to change the pagesize.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:47:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-data-pipeline-public-REST-API-Query-Activity-Runs/m-p/4730493#M8006</guid>
      <dc:creator>larsaia</dc:creator>
      <dc:date>2025-06-12T15:47:18Z</dc:date>
    </item>
  </channel>
</rss>

