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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
tomwill
Microsoft Employee
Microsoft Employee

Deployment Pipeline failing, error message says it's because the model is refreshing...but it's not.

Been getting this message for 20 minutes when trying to deploy a model from DEV to TEST 

tomwill_0-1749712885944.png

But that model IS NOT REFRESHING. Thre refresh history clearly says successful. Has anyone seen this? This is a Fabric workspace.

1 ACCEPTED SOLUTION
Nasif_Azam
Super User
Super User

Hey @tomwill ,

Understanding the Deployment Issue

The error message "Can’t deploy as target because model is refreshing", usually appears when Microsoft Fabric thinks the dataset or semantic model is still refreshing. However, based on your observation, no refresh is actually running, and the refresh history confirms it completed successfully. This discrepancy is known to happen occasionally in Fabric environments.

What Could Be Causing This?

1. Stuck Refresh Flag or Metadata Lag

Even if a refresh finishes, Fabric might still hold onto the status temporarily. This results in a false indication that the model is still being refreshed, preventing deployment.

2. Leftover Locks from Earlier Processes

Fabric might have retained a lock on the model due to a recent scheduled refresh or user-triggered refresh. These locks don’t always clear immediately and can last for 30 to 60 minutes.

3. Artifacts Linked to the Model

If you're deploying multiple items together (e.g., reports and datasets), another artifact in the pipeline might still be processing or have a refresh queued.

What You Can Do to Fix It

Option 1: Wait and Retry After ~30-60 Minutes

  • In most cases, the lock clears automatically after 30–60 minutes.

  • You mentioned it's been 48 minutes try once more after 10–15 more.

Option 2: Force a Manual Refresh

  • In the TEST workspace:

    • Go to the model > click Refresh now (even if it's recent).

    • Wait for completion, then retry deployment.

    • This sometimes clears stale state.

Option 3: Restart the Workspace Capacity

  • If you're using a dedicated capacity (e.g., F SKU):

    • Temporarily pause and resume the capacity to clear locks.

    • Requires Admin access.

Option 4: Copy the Report/Dataset to a New Workspace (if urgent)

  • Create a temporary TEST workspace.

  • Manually publish the PBIX or artifacts.

  • This bypasses the locked workspace but requires cleanup later.

Thinks to remember

  • Avoid scheduling automatic refreshes close to your deployment time.

  • Try splitting your deployment steps start with the model only before deploying related reports.

  • If this happens repeatedly, you can contact Microsoft support and provide the Operation ID, Correlation ID, and Request ID from the error for investigation.

 

If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


Best Regards,
Nasif Azam



Did I answer your question?
If so, mark my post as a solution!
Also consider helping someone else in the forums!

Proud to be a Super User!


LinkedIn

View solution in original post

2 REPLIES 2
Nasif_Azam
Super User
Super User

Hey @tomwill ,

Understanding the Deployment Issue

The error message "Can’t deploy as target because model is refreshing", usually appears when Microsoft Fabric thinks the dataset or semantic model is still refreshing. However, based on your observation, no refresh is actually running, and the refresh history confirms it completed successfully. This discrepancy is known to happen occasionally in Fabric environments.

What Could Be Causing This?

1. Stuck Refresh Flag or Metadata Lag

Even if a refresh finishes, Fabric might still hold onto the status temporarily. This results in a false indication that the model is still being refreshed, preventing deployment.

2. Leftover Locks from Earlier Processes

Fabric might have retained a lock on the model due to a recent scheduled refresh or user-triggered refresh. These locks don’t always clear immediately and can last for 30 to 60 minutes.

3. Artifacts Linked to the Model

If you're deploying multiple items together (e.g., reports and datasets), another artifact in the pipeline might still be processing or have a refresh queued.

What You Can Do to Fix It

Option 1: Wait and Retry After ~30-60 Minutes

  • In most cases, the lock clears automatically after 30–60 minutes.

  • You mentioned it's been 48 minutes try once more after 10–15 more.

Option 2: Force a Manual Refresh

  • In the TEST workspace:

    • Go to the model > click Refresh now (even if it's recent).

    • Wait for completion, then retry deployment.

    • This sometimes clears stale state.

Option 3: Restart the Workspace Capacity

  • If you're using a dedicated capacity (e.g., F SKU):

    • Temporarily pause and resume the capacity to clear locks.

    • Requires Admin access.

Option 4: Copy the Report/Dataset to a New Workspace (if urgent)

  • Create a temporary TEST workspace.

  • Manually publish the PBIX or artifacts.

  • This bypasses the locked workspace but requires cleanup later.

Thinks to remember

  • Avoid scheduling automatic refreshes close to your deployment time.

  • Try splitting your deployment steps start with the model only before deploying related reports.

  • If this happens repeatedly, you can contact Microsoft support and provide the Operation ID, Correlation ID, and Request ID from the error for investigation.

 

If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


Best Regards,
Nasif Azam



Did I answer your question?
If so, mark my post as a solution!
Also consider helping someone else in the forums!

Proud to be a Super User!


LinkedIn

Option 2: Force a Manual Refresh

this worked, thanks. Probably should have thought of it but had the midnight panic

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.