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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
benjammin
Frequent Visitor

Embedded Gen2 XMLA Endpoint Overloaded High CPU Usage

I was testing using XMLA endpoints to refresh tables in PowerShell using the following command:

 

 

 

Invoke-ProcessTable -TableName $TableName -RefreshType Full -Server $Workspace -DatabaseName $DatabaseName -Credential $PSCred -ServicePrincipal

 

 

 

I have a script that I accidentally put in a neverending while loop using asynchronous code to refresh 3 datasets at the same time. 

 

The embedded capacity has been stuck for 2 days constantly refreshing these datasets. Looking at the refresh summary, one dataset has refreshed almost 15,000 times in the past few days. The other two have refreshed over 1,000 times. There is no way to restart the capacity using Gen2. I tried turning the XMLA endpoint off, but when I set it back to Read Write, the datasets keep refreshing. CPU usage is showing as 300% in the Azure Portal. 

 

How can I cancel these XMLA queries?

 

Update: I've tried using 

 

Select * from $System.Discover_Sessions

 

And then finding the current refresh sessions and canceling using:

 

<Cancel xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
	<SessionID>session_id</SessionID>
</Cancel>

 

But this only allows me to cancel one session ID at a time and there are many that are added in real-time. 

 

I also tried moving my workspace to a new embedded resource but refreshes are still happening.

Update 2: I found this article to programmatically cancel all refreshes using Tabular Editor: https://www.elegantbi.com/post/canceldatarefreshte

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @benjammin 

 

Please refer to the following link, hope it can help you.

http://docs.microsoft.ex1.https.443.g0.ipv6.zhuhai.gov.cn/en-us/analysis-services/multidimensional-m... 

https://community.powerbi.com/t5/Service/PPU-Dataset-Unable-to-cancel-user-session/m-p/2281839#M1491... 

 

Best Regards,

Community Support Team _Charlotte

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors