Forum Discussion
Semantic Model Refresh activity gets disattached from the semantic model
- 1 year ago
I agree this looks like a product bug. I have also seen the Semantic model refresh activity lose its selected semantic model after a save and reopen, leaving the step valid but pointing at nothing and completing without error. The official docs cover how to configure the activity but do not mention this behavior, which suggests it is unintended.
This has also been reported here in other forum posts: Pipeline doesn't save changes to Semantic model refresh ActivityWhat I recommend now
Verify after saving
After you click Save, refresh the browser and reopen the activity to confirm the semantic model is still selected. This catches the silent no-op case early.Use an ID-based refresh instead of the UI binding
Trigger the refresh by workspaceId and datasetId using the Power BI REST API from a Web or Notebook activity. Docs: Datasets - Refresh and Get Refresh History. If you prefer a notebook approach, Semantic Link (SemPy) exposes helpers and a Fabric REST client you can call programmatically: SemPy FabricRestClient and Semantic Link overview.Add a post-run check
Immediately after the refresh step, call Get Refresh History for the target dataset and fail the pipeline if there is no recent entry.
If you found this useful, consider giving Kudos. If I solved your problem, mark this post as the solution.
Hi amaaiia,
Thank you for reaching out to the Microsoft fabric community forum.
This issue usually happens when the pipeline is opened in edit mode and saved again during that time the semantic model link may get cleared. The activity still runs, but since no model is linked, nothing gets refreshed. Best way is to re-check the semantic model is selected before saving the pipeline and also confirm from refresh history that data is updated.
please go through with the below document hope it may resolve your Issue:
https://learn.microsoft.com/en-us/fabric/data-factory/semantic-model-refresh-activity
https://learn.microsoft.com/en-us/power-bi/connect-data/data-pipeline-templates
Hope this helps if you have any queries we are happy to assist you further.
Best Regards,
Harshitha.
But is that a bug? I guess it shouldn't be cleared the semantic model..
- Anonymous1 year agoNot applicable
Hi amaaiia,
The semantic model should not get cleared by itself. This looks like a product issue and some other users have also faced the same. That is why sometimes after saving the pipeline, the model link is lost. Best is to always re-check once you save, and also confirm from refresh history that the data is updated.
Regarding the error you got, manually entering Workspace ID and Dataset ID will not work here. The activity needs the semantic model to be selected from the dropdown. If you want to refresh using IDs, the better option is to call the Power BI REST API workspaceId + datasetId through a Web or Notebook activity.
If this keeps happening, I suggest raising a support ticket with Microsoft so that the product team can investigate and fix the bug.
Please refer below link on how to raise a contact support or support ticket.
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft LearnBest regards,
Community Support Team.