FIX: Restore fails when you try to restore compressed TDE backups prior to SQL Server 2016 SP2 CU4 on SQL Server 2016 SP2 CU8

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

Symptoms


Assume that you have Transparent Data Encryption (TDE) enabled databases in Microsoft SQL Server. Anysingle-stripe TDE compressed backup that's taken on SQL Server 2016 Service Pack 2 (SP2) through SQL Server 2016 SP2 Cumulative Update 4 (CU4), cannot be restored on SQLServer 2016 SP2 Cumulative Update 8 (CU8). The restore fails with an error that resembles the following:
Msg 3203, Level 16, State 1, Line LineNumber
Read on "FilePath\FileName" failed: 1101(A tape access reached a filemark.)
Msg 3013, Level 16, State 1, Line LineNumber
RESTORE DATABASE is terminating abnormally.
 
DateTime spid56       Starting up database 'DatabaseName'.
DateTime spid56       The database 'DatabaseName' is marked RESTORING and is in a state that does not allow recovery to be run.
DateTime Backup      Error: 18210, Severity: 16, State: 1.
DateTime Backup      BackupIoRequest::ReportIoError: read failure on backup device 'FilePath\FileName'. Operating system error 1101(A tape access reached a filemark.).

Status


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

Resolution


This issue is fixed in the following cumulative updates for SQL Server:
About cumulative updates for SQL Server:
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

References


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