Symptoms

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.

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.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.