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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

model.SaveChanges() hangs when looping over several small partitions

I am running a loop over all the partitions I need to refresh. partition.RequestRefresh and model.SaveChanges() do the job, except every once every ten calls model.SaveChanges() just hangs. No error or anything. I am repeatedly testing on the same partitions, and it's essentially random which ones fail. The partitions are on the smaller side (it takes all but five minutes when it works), but I am currently waiting for a command that has run for 2.5 hours. What can I do to debug this?
Console.WriteLine("processPartitionInTable: Requesting refresh...");
 partition.RequestRefresh(type: Microsoft.AnalysisServices.Tabular.RefreshType.Full);
 Console.WriteLine("processPartitionInTable: Saving changes...");
 model.SaveChanges();
 Console.WriteLine("processPartitionInTable: Done");
Status: New
Comments
v-chuncz-msft
Community Support

@CasperLehmann 

 

You may visit https://github.com/microsoft/Analysis-Services for assistance.

CasperLehmann
Frequent Visitor

Thanks.

 

For anyone wanting to follow along: https://github.com/microsoft/Analysis-Services/issues/92