Data not replicating sometimes..

  • Hi everyone.

    I have a problem with our merge replication, there are some data which were not replicated when it created on one server, some times modifications also not synched to other servers. what could be the possible causes?

    Please guide me or suggest any solution for this.

    Thanks,

    Noman

  • Hello,

    Are you getting any related errors in the Windows Event Logs, or displayed in the Replication Monitor?

    If it is related to (Merge) Conflict Resolution then this BOL Topic shows you where the conflicts are logged: How Merge Replication Detects and Resolves Conflicts

    Regards,

    John Marsh

    www.sql.lu
    SQL Server Luxembourg User Group

  • Did You check if the rows that are getting updated are satisfying the Filter conditions?.

    Is the Distribution job running?

  • Thanks, but conflicts have resolved on daily basis. but still some data missed which is also not the part of conflicts.

    any possibility of msmerge_contents table having many rows in it??

    Thanks,

    Noman

  • Hello again,

    Are the Replication updates being delivered to the Target Server? If so, then are there any triggers on the Target Tables that might be reversing the updates?

    Regards,

    John Marsh

    www.sql.lu
    SQL Server Luxembourg User Group

  • Thanks John,

    Although we have the triggers on that tables but i cheked all again we have the same schema where these triggers are inserting actually.

    what could be the other possibility for such behavior, i did conflict resolution daily and still many records not replicating. i again update that record, it will replicate in next coming batch.

    seems triggers not fired all the time.. or what??

    Thanks,

    Noman

  • Hello Norman,

    Apologies for the delayed response, but I have been on holiday for a few days.

    Did you ever get to the bottom of this?

    As you have Triggers on the target tables, would it be possible to temporarily add auditing to them i.e. write the record’s PKs to an audit table each time the Triggers are called? That way you would be able to tell if it is or is not the Triggers that cause your issue.

    I would really expect SQL Server would be writing errors somewhere (in the Event Log or Replication Monitor) if the root cause was the Replication.

    Regards,

    John

    www.sql.lu
    SQL Server Luxembourg User Group

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply