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
shike_marples
Advocate I
Advocate I

PPU Dataset - Unable to cancel user session

Hello,

I am encountering an issue with a PPU dataset where the dataset is locked for modifications/processing. I have attempted to cancel the session but it appears to not work. Anyone have any suggestions on what to try?

 

shike_marples_0-1642084647141.png

 

Cancel command run:

<Cancel xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">  
   <SessionID>9BC583E5-A426-48EF-BE3E-BB31C8DFAC56</SessionID>  
</Cancel>

 

Thank you in advance.

4 REPLIES 4
GilbertQ
Super User
Super User

Hi @shike_marples 

 

What you will need to do is to first find the SPID with the following MDX Query

SELECT

session_spid

, session_user_name

, session_last_command

, session_current_database

, session_cpu_time_ms

, session_elapsed_time_ms

, session_start_time

, session_last_command_start_time

, session_last_command_end_time

FROM $system.discover_sessions

WHERE session_status = 1



ORDER BY session_start_time desc

And then kill it using the above SPID with this XMLA Query

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

<SPID>5622</SPID>

</Cancel>

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Thanks for the suggestion @GilbertQ . I have tried the cancel command in many iterations (using SessionID, SPID, adding CancelAssociated true/false) and it does not kill the session. Just got of a call with Microsoft support and they seemed stumped. They are looking into with their various teams.

It has certainly worked for me in the past.

 

Also if you are using a Gateway just restart the Gateway service, that will kill the session if there is any data still going through





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Yes it has worked for me as well ini the past. If I execute a refresh I see the new session come up and that one I can cancel. But it just waits for the original session to finish (it's been hanging there for 2 days now) and it never does so our refresh times out after 5 hours. Data source is cloud based so no gateway being used. Thanks again for your insight/suggestions.

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