Forum Discussion
REST API. jobs/instances?jobType=Refresh causes error while manual refresh works
- 10 months ago
The problem was with permissions. Was trying to refresh with service principal which is not supported at the moment
Hi gshapiev,
When you sync changes from Git into the workspace or use deployment pipelines, you need to open the new or updated dataflow and save changes manually with the editor. This triggers a publish action in the background to allow the changes to be used during refresh of your dataflow. You can also use the on-demand Dataflow publish job API call to automate the publish operation and then refresh.
document where limitation is noted : https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-cicd-and-git-integration
Publish Job API Endpoint : POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/dataflows/{dataflowId}/jobs/instances?jobType=Publish
Thanks & Regards,
Prasanna Kumar
1. Publish method doesn't exist anymore: