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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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