Transaction Replication - Missing data in Target

Gladias Mariadoss 0 Reputation points
2025-11-06T15:00:40.53+00:00

Good day Team,

Source: SQL Server: DB Version: SQL-2019 CU-19 OS: Windows 2019
Target: SQL Server: DB Version: SQL-2022 OS: Windows 2022
Publisher and Distributor are the same as of Source Server
Subscriber is the Target mentioned above. After dropping all incoming data load to Source and dropping all connections, DB from source is backed up and restored in Target. No Snapshot has been created and Snapshot Agent has not been run so far as it is not required.
I have two publications in Source:
Publ1 - Inserts Only, Do Not Replicate Update Do Not Replicate Delete
Publ2 - Inserts, Updates and Deletes
Problem Description - Publ1 - I have chosen "Continue replicating on data consistency errors" option for this Log Reader Agent Profile. Periodically, records are not getting inserted into Target. Most importantly there is no trace of errors logged into into distribution.dbo.MSrepl_errors.Any help in this regard is greatly appreciated.
Note: I have already informed our internal project team about bringing Source and Target servers on the same OS and SQL Version and they are working with our customer for their approval as it requires significant amount of downtime.

Thanks

Gladias

SQL Server Database Engine
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anjan Kumar Chippa (Quadrant Resource LLC) 0 Reputation points Microsoft External Staff Moderator
    2025-11-07T11:03:13.4466667+00:00

    Hi Gladias Mariadoss,

    Thank you for reaching out to SQL Q&A Forum.

    Here the issue occurred because the subscription database was restored manually instead of using the supported Initialize from Backup or snapshot method. So this caused the LSN mismatch between publisher and subscriber, so some insert transactions got skipped without showing errors.

    Please reinitialize the subscription properly either using with a snapshot or by following the documented Initialize from Backup process. This will align the LSNs and make sure all new inserts replicate correctly.

    Please refer below document for your reference:

    https://learn.microsoft.com/en-us/sql/relational-databases/replication/initialize-a-transactional-subscription-from-a-backup?view=sql-server-ver17

    Thanks,
    Anjan Kumar Chippa


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.