queryPipelineRuns REST query for Azure Synapse workspaces doesn't work with filters

Thomas Bailey 36 Reputation points
2022-08-09T14:36:38.237+00:00

Following the documentation here:
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/pipeline-run/query-pipeline-runs-by-workspace

Adding a request body doesn't appear to work.

Running no request body:

229643-image.png

Then running with a filter body:
229586-image.png

Should not be returning a blank array, but the two records on the first screenshot. Please advise.

(P.S. the 'try it!' functionality doesn't work in the documentation, presumably because it gets a token from the wrong audience).

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,558 questions
{count} votes

Accepted answer
  1. AnnuKumari-MSFT 31,731 Reputation points Microsoft Employee
    2022-08-10T05:31:16.863+00:00

    Hi @Thomas Bailey ,
    Thankyou for using Microsoft Q&A platform and thanks for posting your question here.
    As I understand your query, it seems you are trying to query synapase pipeline runs in the synapse workspace based on input filter conditions. However, it is not working as expected for you. Please let me know if my understanding is incorrect.

    There are few things you need to take care before you making the API call as we are trying to check the pipeline execution results via API call:

    • Check 'get_structure' pipeline has been published before you make the API call.
    • Check 'get_structure' pipeline has been recently executed via trigger mode, not debug mode.
    • Add lastUpdatedAfter and lastUpdatedBefore parameters in the request body

    229792-image.png

    Check the output:

    229767-image.png

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.
      Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful