0

I am getting the Tokens are incompatible error.

2021-07-19 10:59:11.131 +00:00 [Error] Failed indexing next set of changes. There will be an attempt to recover from the failure.
Sitecore.Xdb.Collection.Failures.IncompatibleSyncTokensException: Tokens are incompatible, they have different set of shards.
   at Sitecore.Xdb.Collection.Data.SqlServer.Managers.ChangeTracking.SyncToken.IsUpToDate(ISyncToken syncToken)
   at Sitecore.Xdb.Collection.Data.SqlServer.SqlDataProvider.<GetChanges>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.DataProviderCountersDecorator.<GetChanges>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.DataProviderCountersDecorator.<GetChanges>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.Indexing.Indexer.<>c__DisplayClass9_0.<<GetChanges>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.Indexing.IndexerExtensions.<IndexNextChangesSimple>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.Indexing.SingleThreadedIndexer.<IndexNextChangesWithTiming>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.Indexing.SingleThreadedIndexer.<RunInThread>d__6.MoveNext()
2021-07-19 10:59:11.475 +00:00 [Information] Rebuilding process. Stage: RebuildingIncomingChanges.
    Total progress: 95.00%.
    Stage progress: 100.00%.
2021-07-19 10:59:11.491 +00:00 [Information] Rebuilding process. Stage: Finishing.
    Total progress: 95.00%.
    Stage progress: 0.00%.
2021-07-19 10:59:11.491 +00:00 [Information] Shutting down
2021-07-19 10:59:20.184 +00:00 [Information] Rebuilding process. Stage: Finishing.
    Total progress: 95.00%.
    Stage progress: 0.00%.
2021-07-19 10:59:26.693 +00:00 [Information] Rebuilding process. Stage: Finishing.
    Total progress: 95.00%.
    Stage progress: 0.00%.
2021-07-19 10:59:26.708 +00:00 [Error] An error occured during resuming a previous index rebuild process. There will be another attempt to check. The check interval after an error is 00:00:20.
Sitecore.Xdb.Collection.Search.Solr.Failures.SolrResponseException: {
  "responseHeader":{
    "status":400,
    "QTime":0},
  "error":{
    "metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","org.apache.solr.common.SolrException"],
    "msg":"No such core: xdb",
    "code":400}}

   at Sitecore.Xdb.Collection.Search.Solr.SolrClient.EnsureSolrSuccessStatusCode(HttpResponseMessage response)
   at Sitecore.Xdb.Collection.Search.Solr.SolrClient.<SendGetRequestAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.Search.Solr.TaskRetryHelper.<ExecuteTaskWithRetryAsync>d__0`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Sitecore.Xdb.Collection.Search.Solr.TaskRetryHelper.<ExecuteTaskWithRetryAsync>d__0`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.Search.Solr.SolrWriter.<SendGetRequestAsyncWithRetries>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.Search.Solr.IndexRebuildHelper.<GetSolrResponseWithRetry>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.Search.Solr.IndexRebuildHelper.<SwapCores>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.Search.Solr.SolrIndexRebuilder.<CompleteRebuild>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.Indexing.Rebuild.IndexRebuildFlow.<CompleteRebuild>d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.Indexing.Rebuild.IndexRebuildFlow.<TryToResumeRebuild>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.Indexing.Rebuild.IndexRebuildFlow.RebuildStatusWatcher.<>c__DisplayClass5_0.<<Start>g__RunRebuildFlowCycle|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Sitecore.Xdb.Collection.Indexing.Rebuild.TaskExtension.<ExecuteWithInterval>d__0.MoveNext()
2021-07-19 10:59:29.888 +00:00 [Information] Resuming index rebuild.
2021-07-19 10:59:29.888 +00:00 [Information] Rebuilding process. Stage: RebuildingExistingData.
    Total progress: 84.15%.
    Stage progress: 99.00%.
2021-07-19 10:59:29.919 +00:00 [Information] Rebuilding process. Stage: RebuildingExistingData.
    Total progress: 85.00%.
    Stage progress: 100.00%.
2021-07-19 10:59:29.919 +00:00 [Information] Rebuilding process. Stage: RebuildingIncomingChanges.
    Total progress: 85.00%.
    Stage progress: 0.00%.
2021-07-19 10:59:30.014 +00:00 [Information] Rebuilding process. Stage: RebuildingIncomingChanges.
    Total progress: 95.00%.
    Stage progress: 100.00%.
2021-07-19 10:59:30.030 +00:00 [Information] Rebuilding process. Stage: Finishing.
    Total progress: 95.00%.
    Stage progress: 0.00%.
2021-07-19 10:59:30.045 +00:00 [Information] Indexing task stopped, task status: "RanToCompletion"
2021-07-19 10:59:39.896 +00:00 [Information] Rebuilding process. Stage: Finishing.
    Total progress: 95.00%.
    Stage progress: 0.00%.
2021-07-19 10:59:45.216 +00:00 [Information] Rebuilding process. Stage: Finishing.
    Total progress: 95.00%.
    Stage progress: 0.00%.

The xdb rebuild already exist in SolrCloud

xdb_rebuild

I tried the solution in this link

XConnectSearchIndexer.exe -requestrebuild

But, I am stil getting the same error.

What else can be done?

Any help or suggestion would be appreciated.

Thanks in advance

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy