We have successfully migrated many mailboxes but one mailbox migration from on-premise to Exchange online is failing with the following error:
Transient error ObjectNotFoundException has occurred.
The inital sync is fine but the errors creep in after the migration is 95%, during the IncrementalSync phase.
An excerpt from the log from the user report on Exchange Admin Center (confidential info hidden):
2/27/2024 7:58:45 PM [CP7P275MB2536] The Microsoft Exchange Mailbox Replication service 'CP7P275MB2536.ZAFP275.PROD.OUTLOOK.COM' (15.20.7316.37 ServerCaps:FFFFFFFF, ProxyCaps:07FFFFFFFFFFFFFFC7DD2DFDBF5FFFFFCB07EFFF, MailboxCaps:, legacyCaps:FFFFFFFF) is examining the request.
2/27/2024 7:58:45 PM [CP7P275MB2536] Resource information was found with reservation.
2/27/2024 7:58:45 PM [CP7P275MB2536] Content from the Shard mailbox (Mailbox Guid: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, Database: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) will be merged into the target mailbox.
2/27/2024 7:58:45 PM [CP7P275MB2536] Connected to target mailbox 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onmicrosoft.com\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Primary)', database 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', Mailbox server 'CP7P275MB2536.ZAFP275.PROD.OUTLOOK.COM' Version 15.20 (Build 7316.0).
2/27/2024 7:58:48 PM [CP7P275MB2536] Connected to source mailbox 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onmicrosoft.com\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Primary)', database 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', Mailbox server 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.contoso.com' Version 14.3 (Build 513.0), proxy server 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.contoso.com' 14.3.498.0 ServerCaps:, ProxyCaps:, MailboxCaps:, legacyCaps:05FFFF.
2/27/2024 7:58:49 PM [CP7P275MB2536] Request processing continued, stage IncrementalSync.
2/27/2024 7:58:50 PM [CP7P275MB2536] Folder hierarchy changes reported in source 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onmicrosoft.com\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Primary)': 49 changed folders, 0 deleted folders.
2/27/2024 7:58:50 PM [CP7P275MB2536] Job starts to validate migration user.
2/27/2024 7:59:04 PM [CP7P275MB2536] Stage: IncrementalSync. Percent complete: 95.
2/27/2024 7:59:04 PM [CP7P275MB2536] Transient error ObjectNotFoundException has occurred. The system will retry (2/60, 2/611).
The transient error repeats 60 times before becoming a permanent error.
The underlying error from Get-MoveRequestStatistics powershell command run on Exchange online is:
PS C:\Windows\system32> $r.Report.Failures[24]
Timestamp : 2024/02/27 10:08:58
FailureType : ObjectNotFoundException
FailureHash : 9b0a
FailureCode : -2146233088
MapiLowLevelError : -2147221233
FailureSide : Target
FailureSideInt : 2
ExceptionTypes : {ObjectNotFound, Storage, DataProviderPermanent, Exchange...}
ExceptionTypesInt : {106, 70, 102, 1...}
WorkItem : IncrementalSync
Message : Cannot set search criteria in SearchFolder. Try using fewer keywords at the same time, reducing the number of users in the From, To, Cc, and Bcc
fields, and reducing the number of mailboxes that are searched at the same time. --> **MapiExceptionNotFound: Unable to SetSearchCriteria.**
(hr=0x8004010f, ec=-2147221233)
0.35250:0201027D, 1.36674:30000000, 1.61250:00000000, 1.45378:02000000, 1.44866:58000000, 16.55847:EA000000,
17.43559:0000000050030000000000000000000000000000, 20.52176:140F949C2200103100000000, 20.50032:140F949C9217000000000000, 0.53414:140F949C,
0.35180:00000000, 255.23226:140F949C, 255.27962:30000000, 255.17082:0F010480, 0.27745:00000000, 4.21921:0F010480, 255.27962:FA000000,
255.1494:07000000, 0.38698:47000000, 1.41134:47000000, 4.65304:0F010480, 7.62138:010000018169F2E387000000, 7.45754:08000030751A2C2E87000000,
4.52728:0F010480, 7.61228:010000018169F2E387000000, 4.39640:0F010480, 1.63016:30000000, 8.45434:B2AB09ADA0CC4B4C997538C48A88B65487000000,
1.46798:14000000, 5.10786:0000000031352E32302E373331362E3033343A435037503237354D42323533363A32616430363434362D383265332D343733642D623833382D306531646364
6266623338333A3135343735363A2E4E455420362E302E323600000000, 7.51330:D7C3391D7C37DC0802000000, 0.39570:02000000, 1.64146:30000000, 1.33010:30000000,
2.54258:0F010480, 1.33010:30000000, 2.54258:0F010480, 255.1750:1F000430, 255.31418:C3000000, 0.22753:D2000000, 255.21817:0F010480, 0.40514:C8000000,
4.44610:0F010480, 0.30353:0B000A36, 4.19089:0F010480, 0.18065:DA000000, 4.26257:0F010480
DataContext : Mrs#ProxyService, ADInconsistencyCheck, NonInteractiveOther
--------
Operation: IDestinationFolder.SetSearchCriteria
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onmicrosoft.com\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Primary)
OperationSide: Target
Restriction: Restriction: COUNT[100, AND[count:1, CONTENT[ptag:0xeaf001f, PrefixOnWords, Loose, val:[Tag:0xeaf001f, Value:"BERNARD"(string)]]]]
EntryIDs: [count:1, [len=46, data=000000002B2B30723EEEF64A807DE470EA2D88B501008AEB70073A4A5D49ABD7B01E89D9AC960030751A2C2E0000]]
Flags: Recursive, FailOnForeignEID
FolderId: entryId [len=46, data=000000002B2B30723EEEF64A807DE470EA2D88B5010031E86643737E814FB7D717592AC5BA9500018169F2E30000]
Folder: type Search, wkf: None, RegularStorageSourceMailbox, entryId [len=46,
data=000000002B2B30723EEEF64A807DE470EA2D88B5010031E86643737E814FB7D717592AC5BA9500018169F2E30000], parentId [len=46,
data=000000002B2B30723EEEF64A807DE470EA2D88B5010031E86643737E814FB7D717592AC5BA950000000000B70000]
>>>> Current WorkItem: IncrementalSync, Scheduled WorkItems: WriteFolderMessages(P:31,R:-63844625243557,S:63844625243557,C:6297,D:0);
WriteFolderMessages(P:0,R:-63844625249854,S:63844625249854,C:171,D:0); EnumerateFolderMessages(P:3202141,R:-63844625250026,S:63844625250026,C:62,D:0);
EnumerateFolderMessages(P:3202204,R:-63844625250089,S:63844625250089,C:46,D:0);
EnumerateFolderMessages(P:3202251,R:-63844625250136,S:63844625250136,C:62,D:0);
EnumerateFolderMessages(P:3202313,R:-63844625250198,S:63844625250198,C:62,D:0);
EnumerateFolderMessages(P:3202376,R:-63844625250261,S:63844625250261,C:62,D:0); CopierFinished(P:3202438,R:-63844625250323,S:63844625250323,C:62,D:0);
InitialSeedingComplete(P:3202501,R:-63844625250386,S:63844625250386,C:76567,D:0); DoPeriodicCheck(P:0,R:0,S:0,C:312,D:0)
StackTrace : at Microsoft.Exchange.Data.StoreObjects.MapiAccessorExtensionMethods.SetSearchCriteria(IStoreSession storeSession, IMapiFolder mapiFolder,
Restriction restriction, Byte[][] folderScopeEntryIds, SearchCriteriaFlags searchCriteriaFlags)
at Microsoft.Exchange.Data.Storage.CoreFolder.SetSearchCriteria(SearchFolderCriteria searchFolderCriteria, SetSearchCriteriaFlags
setSearchCriteriaFlags)
at Microsoft.Exchange.Data.Storage.BigFunnelCoreFolderDecorator.SetSearchCriteria(SearchFolderCriteria searchFolderCriteria, SetSearchCriteriaFlags
setSearchCriteriaFlags)
at Microsoft.Exchange.MailboxReplicationService.StorageDestinationFolder.Microsoft.Exchange.MailboxReplicationService.IDestinationFolder.SetSearchCri
teria(RestrictionData restriction, EntryId[] entryIds, SearchCriteriaFlags flags)
at Microsoft.Exchange.MailboxReplicationService.DestinationFolderWrapper.Microsoft.Exchange.MailboxReplicationService.IDestinationFolder.SetSearchCri
teria(RestrictionData restriction, EntryId[] entryIds, SearchCriteriaFlags flags)
at Microsoft.Exchange.MailboxReplicationService.MailboxCopierBase.CopySearchFolderCriteria(FolderRecWrapper folderRec, IDestinationFolder destFolder)
at Microsoft.Exchange.MailboxReplicationService.MailboxCopierBase.CopyFolderProperties(FolderRecWrapper folderRec, ISourceFolder sourceFolder,
IDestinationFolder destFolder, FolderRecDataFlags dataToCopy, Boolean& wasPropertyCopyingSkipped)
at Microsoft.Exchange.MailboxReplicationService.MailboxCopierBase.UpdateFolderAfterHierarchyChange(SyncContext ctx, FolderRecWrapper srcFolderRec)
at Microsoft.Exchange.MailboxReplicationService.MailboxCopierBase.ApplyHierarchyChanges(SyncContext ctx, MailboxChangesManifest changes)
at Microsoft.Exchange.MailboxReplicationService.BaseJob.EnumerateAndApplyIncrementalChanges(MailboxCopierBase mbxContext, SyncContext syncContext,
MailboxChangesManifest hierarchyChanges, EnumerateContentChangesFlags contentChangesFlags)
at Microsoft.Exchange.MailboxReplicationService.MoveBaseJob.ApplyIncrementalChanges(Int32 iterationsCount, UInt64 totalChurn, Boolean finalSync)
at Microsoft.Exchange.MailboxReplicationService.MoveBaseJob.IncrementalSync(Int32 iterationsCount, UInt64 totalChurn)
at Microsoft.Exchange.MailboxReplicationService.Job.ExecuteWorkItemCallback(WorkItem workItem)
InnerException : MapiExceptionNotFound: MapiExceptionNotFound: Unable to SetSearchCriteria. (hr=0x8004010f, ec=-2147221233)
0.35250:0201027D, 1.36674:30000000, 1.61250:00000000, 1.45378:02000000, 1.44866:58000000, 16.55847:EA000000,
17.43559:0000000050030000000000000000000000000000, 20.52176:140F949C2200103100000000, 20.50032:140F949C9217000000000000, 0.53414:140F949C,
0.35180:00000000, 255.23226:140F949C, 255.27962:30000000, 255.17082:0F010480, 0.27745:00000000, 4.21921:0F010480, 255.27962:FA000000,
255.1494:07000000, 0.38698:47000000, 1.41134:47000000, 4.65304:0F010480, 7.62138:010000018169F2E387000000, 7.45754:08000030751A2C2E87000000,
4.52728:0F010480, 7.61228:010000018169F2E387000000, 4.39640:0F010480, 1.63016:30000000, 8.45434:B2AB09ADA0CC4B4C997538C48A88B65487000000,
1.46798:14000000, 5.10786:0000000031352E32302E373331362E3033343A435037503237354D42323533363A32616430363434362D383265332D343733642D623833382D306531646364
6266623338333A3135343735363A2E4E455420362E302E323600000000, 7.51330:D7C3391D7C37DC0802000000, 0.39570:02000000, 1.64146:30000000, 1.33010:30000000,
2.54258:0F010480, 1.33010:30000000, 2.54258:0F010480, 255.1750:1F000430, 255.31418:C3000000, 0.22753:D2000000, 255.21817:0F010480, 0.40514:C8000000,
4.44610:0F010480, 0.30353:0B000A36, 4.19089:0F010480, 0.18065:DA000000, 4.26257:0F010480
UnknownElements :
UnknownAttributes :
XmlSchemaType :
The underlying error from the log above is therefore:
Cannot set search criteria in SearchFolder. Try using fewer keywords at the same time, reducing the number of users in the From, To, Cc, and Bcc fields, and reducing the number of mailboxes that are searched at the same time. --> MapiExceptionNotFound: Unable to SetSearchCriteria.
This mailbox soes not have any search folders in addition to the default search folders in Outlook. I did run outlook.exe /cleanfinders before migrating to ensure there would be no issues with searchfolders.