Forum Discussion
I can trigger a dataflow refresh using REST API but cannot cancel it
Hi endel
Thanks for reaching out to Microsoft Fabric Community Forum.
Based on the above error the issue with canceling a dataflow refresh via the REST API after successfully triggering it. You're already able to trigger the refresh, but when you try to cancel it, you're receiving a No refresh in progress.
Here are some workaround which may help you.
- Even if the transaction appears under Get Dataflow Transactions, the Cancel Transaction API may still return "No refresh in progress" due to timing or state synchronization delays in the backend.
- After triggering a refresh, the transaction may not yet be fully registered or marked as InProgress when the cancel request is made.
- If the refresh completes or fails very quickly, the window to cancel it is extremely short this can also trigger the same error.
- Try adding a 2–3 minute delay between triggering the refresh and calling Cancel Transaction to give the system time to register the transaction as active.
- If multiple transactions are returned, cancel only the one with the status = "InProgress", not those in Queued or Completed state.
Hope this helps !!
Thank You.
- endel9 months agoNew Member
Actually, I'm triggering the dataflow refresh, then wait a few seconds and request the refresh history to get the ID of the one in progress, so I believe this discards the hypothesis of being out of sync.
- v-aatheeque9 months agoCommunity Support
Hi endel
Thanks for confirming your setup. Since you’re already triggering the refresh and retrieving the history immediately after, the process should typically stay in sync.
If you’re still observing mismatched or missing refresh IDs despite this, it might require a deeper review from the Power BI service side. I’d recommend opening a Microsoft Fabric Support and Status | Microsoft Fabric.