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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
RajPunjabi
New Member

Pipeline Trigger using API

I am facinng error while scheduling/triggering pipeline via api call

RajPunjabi_0-1742968930357.png


and another method i tried is: REST API capabilities for Fabric Data Factory (Preview) - Microsoft Fabric | Microsoft Learn

RajPunjabi_1-1742968975649.png

 


but it is giving me an error stating "Invalid job type" 

RajPunjabi_2-1742969093255.png

 

1 ACCEPTED SOLUTION

Hi @RajPunjabi ,

Thanks for the update! I understand that the "Invalid jobType" error is persisting. Since you’re scheduling the pipeline manually for now.

A few things to check: Ensure that jobType is not included in the request URL, as the API automatically determines it. Also, verify that your {pipelineId} is correct and matches an existing pipeline in your Fabric workspace. Additionally, double-check that your access token has the required permissions (Pipeline Operator or Fabric Admin).

If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

Thankyou.

View solution in original post

6 REPLIES 6
v-tsaipranay
Community Support
Community Support

Hi @RajPunjabi ,

Thank you for posting in the Microsoft Fabric Community.

 

The "InvalidJobType" error occurs because jobType=Pipeline is not the correct value for triggering a pipeline in Microsoft Fabric.

Try using the correct API call:

 

POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{pipelineId}/jobs/instances?jobTy...

Authorization: Bearer {accessToken}

Content-Type: application/json

 

Request Body:

{

  "executionData": {

    "parameters": {}

  }

}

 

Please ensure that {pipelineId} is a valid pipeline ID from your Fabric workspace. You can verify this in the Fabric UI. Also, confirm that your API token has sufficient permissions (Fabric Admin or Pipeline Operator role).

If the error persists, you can manually trigger the pipeline from the Microsoft Fabric UI as a temporary solution.

 

I hope this will resolve your issue, if you need any further assistance, feel free to reach out.

If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

Thankyou.

 

Still it is giving as Invalid jobtype. I will schedule that manually for now

Hi @RajPunjabi ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

Hi @RajPunjabi ,

Thanks for the update! I understand that the "Invalid jobType" error is persisting. Since you’re scheduling the pipeline manually for now.

A few things to check: Ensure that jobType is not included in the request URL, as the API automatically determines it. Also, verify that your {pipelineId} is correct and matches an existing pipeline in your Fabric workspace. Additionally, double-check that your access token has the required permissions (Pipeline Operator or Fabric Admin).

If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

Thankyou.

RajPunjabi
New Member

RajPunjabi_0-1742985815084.png

Still i am facing same error

nilendraFabric
Community Champion
Community Champion

Try with jobtype=Pipeline once

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.