You are currently offline, waiting for your internet to reconnect

FIX: Error message when you try to synchronize a SQL Server 2005 Compact Edition subscription again: "The common generation watermark is invalid at this replica since it does not exist"

Extended support for SQL Server 2005 ends on April 12, 2016

If you are still running SQL Server 2005 after April 12, 2016, you will no longer receive security updates and technical support. We recommend upgrading to SQL Server 2014 and Azure SQL Database to achieve breakthrough performance, maintain security and compliance, and optimize your data platform infrastructure. Learn more about the options for upgrading from SQL Server 2005 to a supported version here.

Bug #: 50001335 (SQL Hotfix)
SYMPTOMS
Consider the following scenario. You synchronize a Microsoft SQL Server 2005 Compact Edition (SQL Server Compact Edition) subscription to a Microsoft SQL Server 2005 publication. During the synchronization, you disconnect the subscriber. In this scenario, you receive the following error message when you try to synchronize the SQL Server Compact Edition subscription again:
System.Data.SqlServerCe.SqlCeError: A call to SQL Server Reconciler failed. Try to resynchronize.

The merge process failed because it detected a mismatch between the replication metadata of the two replicas, such that some changes could be lost leading to non-convergence. This could be due to the subscriber not having synchronized within the retention period, or because of one of the replicas being restored to a backup older than retention period, or because of the publisher performing more aggressive cleanup on articles of type download-only and articles with partition_options = 3. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147199363)

The common generation watermark is invalid at this replica since it does not exist or metadata for changes not yet propagated may have been cleaned up. (Source: MSSQLServer, Error number: 21800)
This problem occurs if the following conditions are true:
  • You disconnect from the database when SQL Server Compact Edition is processing the .out file from the virtual directory.

    Note The virtual directory is on the server that is running Internet Information Services (IIS).
  • The partition options property of the published article is set to the 3 value.
  • The SQL Server 2005 publication uses the dynamic filtering feature.
  • The ExchangeType property of the Replication Merge Agent is set to the Bidirectional value or to the Download value.
CAUSE
This problem occurs because the merge replication metadata at the publisher differs from the merge replication metadata at the subscriber. When you try to synchronize the SQL Server Compact Edition subscription again, the merge replication process detects the difference. Therefore, you receive the error message.
RESOLUTION

Cumulative update information

To resolve this problem, install SQL Server 2005 Service Pack 2. Then, install cumulative update package 2 for SQL Server 2005 Service Pack 2 (build 3175). This problem is resolved in cumulative update package 2 for SQL Server 2005 Service Pack 2 (build 3175).

For more information about how to obtain SQL Server 2005 Service Pack 2, click the following article number to view the article in the Microsoft Knowledge Base:
913089 How to obtain the latest service pack for SQL Server 2005
For more information about how to obtain cumulative hotfix package 2 for SQL Server 2005 Service Pack 2 (build 3175), click the following article number to view the article in the Microsoft Knowledge Base:
936305 Cumulative update package 2 for SQL Server 2005 Service Pack 2 is available
WORKAROUND
To work around this problem, set the partition options property to the 1 value or to the 2 value.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
REFERENCES
For more information about the partition options property, see the "To set filtering options" section of the following Microsoft Developer Network (MSDN) Web site:
Properties

Article ID: 938050 - Last Review: 11/20/2007 17:47:19 - Revision: 1.2

Microsoft SQL Server 2005 Compact Edition

  • kbprb kbtshoot kbexpertiseadvanced KB938050
Feedback
dy>