Forum Discussion

SKLL75's avatar
SKLL75
Regular Visitor
1 year ago
Solved

Location URL not exposed in Job Scheduler API response

Hi,

When calling the job scheduler api to run a notebook on demand
POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{itemId}/jobs/instances?jobType={jobType}
The API response does not contain the location url in the header.
I can see the following header value:
"Access-Control-Expose-Headers": "RequestId,Retry-After"
which indicates that "location" is blocked.
I need the location header to use the async status pattern in data factory.

4 Replies

  • v-echaithra's avatar
    v-echaithra
    Community Support

    Hi SKLL75 ,

    Thank you for posting in Microsoft Community.

    If it comes under CORS limitation at the client level, try creating a logic app that calls Fabric API and extracts the location header which returns the result to your ADF.
    Reference: Fabric data pipeline public REST API - Microsoft Fabric | Microsoft Learn
    Complete Guide to Cross-Origin Resource Sharing (CORS) - KeyCDN Support

    If this post helps, please give us Kudos and consider marking it Accept as solution to assist other members in finding it more easily.

    Regards,
    Chaithra




  • v-echaithra's avatar
    v-echaithra
    Community Support

    Hi SKLL75 ,

    May I ask if you have gotten this issue resolved?

     

    If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.

     

    Regards,
    Chaithra.

  • v-echaithra's avatar
    v-echaithra
    Community Support

    Hi SKLL75 ,

    We would like to follow up to see if the solution provided by the user resolved your issue. Please let us know if you need any further assistance.
    If the provided response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

     

    Regards,
    Chaithra.

  • v-echaithra's avatar
    v-echaithra
    Community Support

    Hi SKLL75 ,

    As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
    If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

     

    Regards,
    Chaithra.