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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ddelapasse
Frequent Visitor

Using API to Update SemanticModel - but 'Refreshed' Timestamp doesn't update

Hi,

I'm working on a webapp that will host an embedded PBI.  The webapp's "schema" can be changed by the users and if that happens I am using the Fabric api to push an update to the Semantic Model.  This works FINE but it's really annoying that I cannot confirm the update by looking in PowerBI here.  Is there any other way that I could see the actual timestamp of the model?  I don't know what this Refreshed means in this context - we only use DirectQueries.  Appreciate any help you guys can offer!

ddelapasse_0-1737555894720.png

 

1 REPLY 1
v-linyulu-msft
Community Support
Community Support

Hi, @ddelapasse 
Thanks for reaching out to the Microsoft fabric community forum.

1.Firstly, I understand that you are currently using a semantic model with DirectQuery storage mode and updating the model via an API——

POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes

However, typically, the refresh API does not support refreshing DirectQuery storage mode, which would result in an error as shown below.

vlinyulumsft_0-1737614117117.png

Only semantic models using Import storage mode can trigger a refresh successfully.

vlinyulumsft_1-1737614117118.png

Therefore, I am curious about which API you are using. Could you please specify which API you are referring to?

 

2.Secondly, based on your description, does "The webapp's 'schema'" refer to the layout of visual objects and filters in the report? In our definition, a schema does exist, as shown in the official documentation screenshot below:

vlinyulumsft_2-1737614128969.png

However, a normal schema refresh is not supported on the service unless you are using Push storage mode refresh, which contradicts your mention of DirectQuery storage mode. Here is a screenshot from the official documentation:

vlinyulumsft_3-1737614128970.png

3.Therefore, my initial assumption is that your refresh might only involve refreshing the visual objects in the report. Here is a screenshot from the official documentation:

vlinyulumsft_4-1737614143401.png

This also explains why the refresh timestamp is not updating, as the normal refresh history only records the times involving data refresh. Here is a relevant documentation screenshot:

vlinyulumsft_5-1737614143402.png

For further details, please refer to:
Data refresh in Power BI - Power BI | Microsoft Learn
 

Of course, this is just my assumption. If I have misunderstood your requirements, please clarify which API you are using for the update and what exactly you mean by "The webapp's 'schema'". I look forward to your response.

 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 



Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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