Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
JatinSaini
Regular Visitor

[URGENT] Get Status of the Data Pipeline after trigger using Power Automate

Hi Developers,

Am new to the Fabric Platform and recently I have created a Data Pipeline. And have create a power automate flow to run that data pipeline via API method (HTTP Request).
Here's the below thred for that:
[URGENT] Run DataPipeline via API using Power Automate and get status
In continuation of this,
I also want to get the status of the triggered pipeline. If suppose there are multiple people running the same pipeline, how can I retrieve the status of only my instance?

Thanks in Advance.

1 ACCEPTED SOLUTION

Hi @JatinSaini ,

We wanted to follow up as we haven’t heard back from you. Could you kindly confirm if the solution we provided resolved your issue?

If you need any further assistance, please don’t hesitate to let us know. Your feedback is important to us, and we look forward to your response.

View solution in original post

7 REPLIES 7
V-yubandi-msft
Community Support
Community Support

Hi @JatinSaini ,

Thanks for reaching out to the Microsoft Fabric Community Forum.

@lbendlin providing useful information However, it appears that you are encountering an issue where the body is empty when running the API through the HTTP Connector via Power Automate. Please double-check the following steps to resolve this issue.

If the API returns an empty response body when triggering the pipeline, it could indicate.

  • The API doesn’t directly give a Run ID or status information in the trigger response.
  • The pipeline trigger request might be asynchronous. This means the triggering API call doesn't immediately give the Run ID, and you may need another API call to fetch it.
  • Some APIs provide a separate endpoint to check recent pipeline runs or get details of an active run.

Note: Ensure that the API is meant to return a response body. Some APIs might only give a status code without a body.

Enable Response Logging in Power Automate.

  • Check if the HTTP Connector in Power Automate logs headers or metadata in the response.
  • Even if the body is empty, sometimes headers have extra details like an operation ID or a URL to check the run status.
  • If the API gives an error status code (like 400, 404, 500), the response body may be empty or may have error details. Always look at the status code first.
  • If the API needs authentication, make sure you're giving the right credentials (like an API key or OAuth token). An authentication failure can also result in an empty response.

Query for Recent Pipeline Runs.

  • Use the API endpoint (if available) to fetch recent pipeline runs.
  • Filter the results by trigger time, user, or other unique parameters to identify your specific instance.

Use a Custom Identifier in the Trigger Request

  • When triggering the pipeline via API, some systems let you send custom metadata or tags as part of the request payload.
  • For instance, you can include your username, a timestamp, or a custom tag (like Initiator: 'Your Name') in the request body.
  • Use this metadata to query and differentiate your run.

Cors and Security Policies

  • Cors Issues: If you're calling an API hosted on a different domain, Cross-Origin Resource Sharing (CORS) policies might stop the response from coming back. This is particularly important if you're using a custom connector.
  • Firewall or Security Settings: Check if there are any firewall rules or security settings that could be blocking the response from reaching Power Automate.
  • Use Postman or Curl: Test the API outside of Power Automate with tools like Postman or Curl to see if you get a response. This can help you figure out whether the issue is with the API or Power Automate.

For more information, please refer below link:

HTTP actions reference - Power Automate | Microsoft Learn

 

If my response solved your query, please mark it as the Accepted solution to help others find it easily!

And if my answer was helpful, I'd really appreciate a 'Kudos'.

 

 

 

 

Hi @JatinSaini ,

We wanted to follow up as we haven’t heard back from you. Could you kindly confirm if the solution we provided resolved your issue?

If you need any further assistance, please don’t hesitate to let us know. Your feedback is important to us, and we look forward to your response.

JatinSaini
Regular Visitor

Hi @lbendlin ,
The API is not generatiing anything post response, I was running the api through the HTTP Connector via Power Automate, but the Body is empty. 

I'd call that a bug.  If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .

lbendlin
Super User
Super User

Hi @lbendlin ,
Thanks for the revert.
I have followed your shared documentation but I have one major query that, how will i get the jobInstanceID for the Pipepline which i triggered, as it does not have anything the body of the response?

 

The instance id is in the "location"  field of the response.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!

JanFabricDF_carousel

Fabric Monthly Update - January 2025

Take your data replication to the next level with Fabric's latest updates!