Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Trying to refresh Dataflow Gen2 (CI/CD) dataflow using Rest API
Getting error on the service side:
There was a problem refreshing the dataflow: 'Exception encountered in GetPublishStatusAsync: Response status code does not indicate success: 404 (Not Found)..'. Error code: . (Request ID: 00000000-0000-0000-0000-000000000000).
When initiating run in the workspace Everything runs fine.
What could be the problem? Am I missing something?
Solved! Go to Solution.
The problem was with permissions. Was trying to refresh with service principal which is not supported at the moment
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?j...
Thanks & Regards,
Prasanna Kumar
1. Publish method doesn't exist anymore:
Hi @gshapiev,
Thank you for reaching out to the Microsoft Fabric Forum Community.
The error happens because you’re trying to refresh a Dataflow Gen2 with the old Power BI REST API, which only supports Gen1 dataflows. That’s why the call returns 404 Not Found, even though the refresh works fine inside the workspace. The fix is to use the Fabric REST API instead of the Power BI API, make sure you use the correct workspace ID and item ID from Fabric, and authenticate with the Fabric scope. With the right endpoint, IDs, and permissions, the refresh will work as expected.
Thanks & Regards,
Prasanna Kumar
I'm using fabric api
https://api.fabric.microsoft.com/v1/workspaces/{{WorkspaceId}}/dataflows/{{DataflowId}}/jobs/instances?jobType=Refresh
The call actually goes through and I get 202 response. The error is on the service side.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Fabric update to learn about new features.