KB4499231 - FIX: Log reader agent may fail after AG failover with TF 1448 enabled in SQL Server 2014, 2016 and 2017

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


The Availability Group (AG) setup and the transactional replication publisher database are joined as the AG database and Trace Flag (TF) 1448 is enabled in Microsoft SQL Server 2014, 2016 and 2017. After AG failover, the log reader agent may fail with the following error:

The process could not execute 'sp_repldone/sp_replcounters' on 'ServerName\ServerInstance'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20011). The specified LSN {0018cfa2:000086f8:0003} for repldone log scan is not a replicated commit record.


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


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:


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