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

質問 Replica with the specified key was not found Error in sync fx 2.1

  • 2012年8月8日 9:51
     
     

    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.

    • 編集済み gk23 2012年8月8日 9:56
    •  

すべての返信

  • 2012年8月10日 6:12
    モデレータ
     
     
    do you consistently get this error? or at random times only?