Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Symptoms

Consider the following scenario:

  • You install Microsoft SQL Server Compact 3.5 on a computer.

  • You create a subscriber in SQL Server Compact 3.5.

  • You download many rows from a merge publication to a database while the publisher synchronizes with the subscriber. The rows contain many articles and constraints.

In this scenario, an error message that resembles the following is logged in the SQL Server error log:

System.Data.SqlServerCe.SqlCeException
Native Error = 0, HRESULT = -2147217873, Error Message: A specified value violated the integrity constraints for a column or table.

Note This issue occurs in both 32-bit operating system and 64-bit operating system.

Cause

This issue occurs because an invalid exchange ID is used.

When many rows for download are in a pending state, SQL Compact Client Agent calls a retry method that uses an invalid exchange ID. Therefore, the issue that is mentioned in the "Symptoms" section occurs.

Resolution

The hotfix that resolves this issue is included in cumulative update package 5 for SQL Server Compact 3.5 Service Pack 2 (SP2).

For more information about how to obtain cumulative update package 5 for SQL Server Compact 3.5 SP2, click the following article number to view the article in the Microsoft Knowledge Base:

2553608 Cumulative Update 5 for SQL Server Compact 3.5 Service Pack 2

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.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×