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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
dzav
Advocate III
Advocate III

Dataset refresh not refreshing

I built a pipeline that runs a foreach loop that triggers a notebook to refresh Power BI semantic models. It's pretty simple - I pass parameters into the notebook in the first cell and then use the parameters to refresh like this:

 

 

 

 

import sempy.fabric as fabric 

fabric.refresh_dataset(
    workspace = WorkspaceName,
    dataset = SemanticModel
)
    
print(WorkspaceName, SemanticModel)

 

 

 

 

Note that I'm experiencing a service bug where the Semantic Model Refresh activity isn't available (I submitted a ticket).

 

This refresh appears to be working - the last refresh date is updated and the refresh is logged. However, the reports themselves aren't updated. If I refresh manually, they work. The difference between the two that I see is this.

 

Scheduled refresh shows:

Via Enhanced Api

# Type Start End Duration Status Error

1Data5/8/2024, 12:42:02 PM5/8/2024, 12:42:03 PM00:00:00.875Completed

 

Manual refresh shows:

# Type Start End Duration Status Error

1Data5/8/2024, 3:17:39 PM5/8/2024, 3:17:49 PM00:00:09.517Completed
1Query Cache5/8/2024, 3:17:49 PM5/8/2024, 3:17:49 PM00:00:00.203Completed

 

It appears that the query cache step is necessary to refresh the report visuals, but how do I do this with sempy.fabric?

1 ACCEPTED SOLUTION
dzav
Advocate III
Advocate III

For what it's worth, I think I figured it out. It was a matter of specifying refresh_type = 'full' 

The default is 'automatic', which apparently doesn't refresh the dataset.
 

View solution in original post

1 REPLY 1
dzav
Advocate III
Advocate III

For what it's worth, I think I figured it out. It was a matter of specifying refresh_type = 'full' 

The default is 'automatic', which apparently doesn't refresh the dataset.
 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.