locked
Replica with the specified key was not found Error in sync fx 2.1 RRS feed

  • Question

  • I am getting the following error while applying batch file changes in the sync framework 2.1.

    =====================================================================================================================

    ApplyChanges: An unexpected error occurred when applying batch file C:\Windows\TEMP\WebSync_4af646611d0f4601a72c40c9a0481479\b3441075-8fcb-4feb-a71a-df7bbe79d09b.batch. See the inner exception for more details.
    Microsoft.Synchronization.ReplicaNotFoundException: Replica with the specified key was not found.
       at Microsoft.Synchronization.SyncServices.ThrowExceptionForHR(Int32 hr)
       at Microsoft.Synchronization.ReplicaKeyMap.LookupReplicaId(UInt32 replicaKey)
       at Microsoft.Synchronization.Data.SyncRowMetadata..ctor(DataRow row, Boolean isTombstone, DbSyncAdapter adapter, SyncKnowledge fromKnowledge, SyncKnowledge toKnowledge, Boolean isLocal)
       at Microsoft.Synchronization.Data.RelationalSyncProvider.ApplyChangesInternal(DbSyncScopeMetadata scopeMetadata, IDbTransaction transaction, FailedDeleteDelegate_type failedDeleteDelegate, DataSet dataSet, ChangeApplicationType applyType)
       at Microsoft.Synchronization.Data.RelationalSyncProvider.ApplyChanges(DbSyncScopeMetadata scopeMetadata, IDbTransaction applyTransaction, DataSet dataSet, DbSyncSession DbSyncSession, Boolean commitTransaction, FailedDeleteDelegate_type failedDeleteDelegate, String batchFileName, ChangeApplicationAction& action)
       at Microsoft.Synchronization.Data.RelationalSyncProvider.SingleTransactionApplyChangesAdapter.Apply(DataSet dataSet, Boolean commitTransaction, FailedDeleteDelegate_type failedDeleteDelegate, String batchFileName, ChangeApplicationAction& action)
       at Microsoft.Synchronization.Data.DbSyncBatchConsumer.ApplyBatches(DbSyncScopeMetadata scopeMetadata, DbSyncSession syncSession, SyncSessionStatistics sessionStatistics)

    =================================================================================================================================

    How to resolve this issue?

    Any help would be greatly appreciated.

    • Edited by gk23 Wednesday, August 8, 2012 9:56 AM
    Wednesday, August 8, 2012 9:51 AM

All replies

  • do you consistently get this error? or at random times only?
    Friday, August 10, 2012 6:12 AM