Forum Discussion

DavideCapuano's avatar
DavideCapuano
New Member
2 months ago
Solved

Usage Metrics Report - Broken Refresh

Hi,

As a Member of a Workspace, I generated a Usage Metric Report a few weeks ago, which was correctly working and auto-refreshing until last week, when my corporate account was kind of 'reset' and logged me out to any app / client it was associated with, including PBI.

I successfully made log in both from Desktop and Service, but since that day the refresh for the semantic model associated to Usage Metrics looks broken with the following error message:

Data source error:	{"error":{"code":"DMTS_OAuthTokenRefreshFailedError","pbi.error":{"code":"DMTS_OAuthTokenRefreshFailedError","parameters":{"EntraIdErrorCodes":"AADSTS135010"},"details":[{"code":"DM_ErrorDetailNameCode_UnderlyingErrorMessage","detail":{"type":1,"value":"AADSTS135010: UserPrincipal doesn't have the key ID configured. Trace ID: be335e4d-268e-47f8-ac73-53524af82600 Correlation ID: 2ebc81e4-230f-4621-b85c-f520ed29d03b Timestamp: 2026-05-31 20:59:32Z"}}],"exceptionCulprit":1}}}
Cluster URI:	WABI-WEST-US-D-PRIMARY-redirect.analysis.windows.net
Activity ID:	afa627af-16bb-4e9e-8b22-317fb6af3039
Request ID:	41ad6549-0b9b-4cbc-80e5-306829a9d329
Time:	2026-05-31 20:59:32Z

 

The less-stringed version of this error, coming from a pop-up, says: 
Credentials missing. Go to Semantic model settings  > Data source credentials, edit any broken credentials, re-authenticate, then refresh your model.

But apparently, having a look at that section, everything looks fine - I made sure several times that the credentials were set as follows:


And by signing in, it redirects me to the log-in pop-up, where I can succesfully select my account and update the credentials.

Still, on the following refresh, the same error keeps appearing.

What could be and how can I possibly fix this?

Thanks!

 

  • Hi DavideCapuano

     

    THe best way to fix this is to reset the usage metrics report. 

    In the workspace settings, go to storage, then find the usage metrics semantic model and delete it. 

    After deleting that model, right click on the report you want metrics on, and click on the view usage metrics report link. THis will cause the service to create a new semantic model with a new connection for the usage metrics report. 

     

    If the usage metrics is something that you look at for many reports, I would recommend exploring the GetActivityEvents API instead, from the data there you can build your own usage metrics report that works for all reports in your enviornment. https://learn.microsoft.com/en-us/rest/api/power-bi/admin/get-activity-events

     

4 Replies

  • Hi DavideCapuano

     

    THe best way to fix this is to reset the usage metrics report. 

    In the workspace settings, go to storage, then find the usage metrics semantic model and delete it. 

    After deleting that model, right click on the report you want metrics on, and click on the view usage metrics report link. THis will cause the service to create a new semantic model with a new connection for the usage metrics report. 

     

    If the usage metrics is something that you look at for many reports, I would recommend exploring the GetActivityEvents API instead, from the data there you can build your own usage metrics report that works for all reports in your enviornment. https://learn.microsoft.com/en-us/rest/api/power-bi/admin/get-activity-events

     

  • Hi DavideCapuano ,
    Thanks for reaching out to the Microsoft Fabric Community forum. 


    As you have already tried to re-authenticate to the semantic model without expected reslt, consider deleting the existing Usage Metrics Report semantic model and regenerating it by selecting View Usage Metrics again. This will create a fresh semantic model along with new associated usage metrics reports.

    Please find the steps on how to delete the semantic model and recreate a new one: Monitor Usage Metrics in Power BI Workspaces (preview) - Power BI | Microsoft Learn


    I hope this information helps. Please do let us know if you have any further queries.
    Thank you

  • Hi DavideCapuano 

    I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.


    Thank you.

  • Hi DavideCapuano 

    May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.


    Thank you