FIX: Assertion error occurs during restore of compressed backups in SQL Server 2014, 2016 and 2017

Applies to: SQL Server 2016 DeveloperSQL Server 2016 EnterpriseSQL Server 2016 Enterprise Core


Assume that you restore a compressed backup in Microsoft SQL Server 2014, 2016 and 2017. Occasionally, the restore operation may fail with the following error message:

Error: 17066, Severity: 16, State: 1.

SQL Server Assertion: File:FileName, line=LineNumber Failed Assertion = '!m_ActiveConsumptionList.IsEmpty () || !m_ActiveReads.IsEmpty () || !m_DecodeOutputQ.IsEmpty ()'. This error may be timing-related. If the error persists after rerunning the statement, use DBCC CHECKDB to check the database for structural integrity, or restart the server to ensure in-memory data structures are not corrupted.


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


Learn about the terminology that Microsoft uses to describe software updates.