Hi, all. I work for a software company and we had to upgrade one of our applications which uses an OLTP database. We use transactional replication for reporting purposes and when we perform upgrades we use a process that basically deletes and recreates replication after the upgrade is completed. Unfortunately, I did not do this work but I was apprised of this problem this morning. In Replication Monitor we noticed that the Log Reader Agent is failing with the following error:
The process could not execute 'sp_repldone/sp_replcounters' on <server\instance>. (Source: MSSQL_REPL, Error number: MSSQL_REPL20011)
Get help: http://help/MSSQL_REPL20011
The specified LSN {00000000:00000000:0000} for repldone log scan occurs before the current start of replication in the log {00026198:00001df9:006b}. (Source: MSSQLServer, Error number: 18768)
Get help: http://help/18768
The process could not set the last distributed transaction. (Source: MSSQL_REPL, Error number: MSSQL_REPL22017)
Get help: http://help/MSSQL_REPL22017
I don't know how but it seems the LSN number the agent was looking for was somehow reset to the very first one. I'm not sure how we can go about fixing this or how it could have happened. Has anyone seen this before and do you know of a way to have it fixed? Also, does anyone know what could have caused this issue? Thanks.