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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Solution Sage
Solution Sage

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

View solution in original post

2 REPLIES 2
Nasif_Azam
Solution Sage
Solution Sage

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

Option 2: Force a Manual Refresh

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.