FIX: Access violation occurs when you run and then cancel a query on distinct count partitions in SSAS

Applies to: SQL Server 2016 Service Pack 1SQL Server 2016 DeveloperSQL Server 2016 Enterprise


Consider the following scenario:
  • You are using Microsoft SQL Server Analysis Services (SSAS). 
  • You run a query on the partitions that contain distinct count measures.
  • You cancel the execution of this query.
In this scenario, an access violation may occur, and a mini dump file is generated at the same time.


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.