Mirela_Buru, here is the info from $syncstats.Report.Failures | select -last 2.
We would like to know how to identify the message or folder with problems.
Timestamp : 10/9/2020 14:10:11
FailureType : ImapBadResponseException
FailureHash : 831e
FailureCode : -2146233088
MapiLowLevelError : 0
FailureSide : Source
FailureSideInt : 1
ExceptionTypes : {Exchange}
ExceptionTypesInt : {1}
WorkItem : CrawlAndCopyFolder
Message : Imap server sent BAD response to FetchCommand. Response code: '', message: 'Error in IMAP command UID FETCH: Invalid uidset'.
MessageData :
DataContext : --------
Operation: ImapSourceMailbox.CopyBatchOfMessages
EntryIDs: [count:1, [len=72,
data=563D313B503D494D41503B553D303B55563D313132393832303335353B4C463D45383031414632453130373346313842353638363045333741454331444132424644344642303832]]
--------
Operation: IMailbox.ExportMessages
REDACTED-4550cf30bb6928358f697b4008d2fc90@frsf.utn.edu.ar (IMAP)
OperationSide: Source
Flags: ReportBadItems
PropTags: (null)
--------
MessageCount: 1
EntryIDs: [count:1, [len=72,
data=563D313B503D494D41503B553D303B55563D313132393832303335353B4C463D45383031414632453130373346313842353638363045333741454331444132424644344642303832]]
--------
Folder: type Generic, wkf Inbox, entryId [len=5, data=496E626F78], parentId [len=10, data=49706D53756274726565]
--------
Folder: type Generic, wkf Inbox, entryId [len=5, data=496E626F78], parentId [len=10, data=49706D53756274726565]
--------
>>>> Current WorkItem: CrawlAndCopyFolder, Scheduled WorkItems: CrawlAndCopyFolder(P:0,R:1,S:0,C:10268); CrawlAndCopyFolder(P:1,R:0,S:0,C:10427);
CrawlAndCopyFolder(P:1,R:0,S:0,C:10360); CrawlAndCopyFolder(P:0,R:0,S:0,C:10395); CrawlAndCopyFolder(P:0,R:0,S:0,C:10369); CrawlAndCopyFolder(P:0,R:0,S:0,C:10448);
CrawlAndCopyFolder(P:2,R:0,S:0,C:9784); CrawlAndCopyFolder(P:2,R:0,S:0,C:10470,Cnt=20); DoPeriodicCheck(P:0,R:0,S:0,C:0); CrawlAndCopyFolder(P:4,R:0,S:1,C:10496,Cnt=6)
--------
Operation: ImapSourceMailbox.CopyBatchOfMessages
EntryIDs: [count:1, [len=72,
data=563D313B503D494D41503B553D303B55563D313132393832303335353B4C463D45383031414632453130373346313842353638363045333741454331444132424644344642303832]]
--------
Operation: IMailbox.ExportMessages
REDACTED-4550cf30bb6928358f697b4008d2fc90@frsf.utn.edu.ar (IMAP)
OperationSide: Source
Flags: ReportBadItems
PropTags: (null)
--------
MessageCount: 1
EntryIDs: [count:1, [len=72,
data=563D313B503D494D41503B553D303B55563D313132393832303335353B4C463D45383031414632453130373346313842353638363045333741454331444132424644344642303832]]
--------
Folder: type Generic, wkf Inbox, entryId [len=5, data=496E626F78], parentId [len=10, data=49706D53756274726565]
--------
Folder: type Generic, wkf Inbox, entryId [len=5, data=496E626F78], parentId [len=10, data=49706D53756274726565]
--------
>>>> Current WorkItem: CrawlAndCopyFolder, Scheduled WorkItems: CrawlAndCopyFolder(P:0,R:1,S:0,C:10268); CrawlAndCopyFolder(P:1,R:0,S:0,C:10427);
CrawlAndCopyFolder(P:1,R:0,S:0,C:10360); CrawlAndCopyFolder(P:0,R:0,S:0,C:10395); CrawlAndCopyFolder(P:0,R:0,S:0,C:10369); CrawlAndCopyFolder(P:0,R:0,S:0,C:10448);
CrawlAndCopyFolder(P:2,R:0,S:0,C:9784); CrawlAndCopyFolder(P:2,R:0,S:0,C:10470,Cnt=20); DoPeriodicCheck(P:0,R:0,S:0,C:0); CrawlAndCopyFolder(P:4,R:0,S:1,C:10496,Cnt=6)
--------
Folder: type Generic, wkf Inbox, entryId [len=5, data=496E626F78], parentId [len=10, data=49706D53756274726565]
--------
Folder: type Generic, wkf Inbox, entryId [len=5, data=496E626F78], parentId [len=10, data=49706D53756274726565]
--------
>>>> Current WorkItem: CrawlAndCopyFolder, Scheduled WorkItems: CrawlAndCopyFolder(P:0,R:1,S:0,C:10268); CrawlAndCopyFolder(P:1,R:0,S:0,C:10427);
CrawlAndCopyFolder(P:1,R:0,S:0,C:10360); CrawlAndCopyFolder(P:0,R:0,S:0,C:10395); CrawlAndCopyFolder(P:0,R:0,S:0,C:10369); CrawlAndCopyFolder(P:0,R:0,S:0,C:10448);
CrawlAndCopyFolder(P:2,R:0,S:0,C:9784); CrawlAndCopyFolder(P:2,R:0,S:0,C:10470,Cnt=20); DoPeriodicCheck(P:0,R:0,S:0,C:0); CrawlAndCopyFolder(P:4,R:0,S:1,C:10496,Cnt=6)
DataContextData :
StackTrace : at Microsoft.Exchange.Connections.Imap.ImapConnection.ProcessResponsesInternal(String commandType, IEnumerable`1 responses, String tag, Boolean isLogin, Boolean
isAuth, IImapBulkItemProcessor itemProcessor, Int32 estimatedMessageCount, Int32 estimatedFolderCount, FolderStatistics& folder, IList`1& messages, IList`1& folders,
SearchData& searchResults, ExtendedSearchData& esearchResults, ItemCopyResult& copyResult, ItemCreateResult& createResult, Boolean& receivedUpdate)
at Microsoft.Exchange.Connections.Imap.ImapConnection.ProcessMessagesResponses(String commandType, IEnumerable`1 responses, String tag, IImapBulkItemProcessor
itemProcessor, Int32 estimatedMessageCount, IList`1& messages)
at Microsoft.Exchange.Connections.Imap.ImapConnection.GetItems(MessageSet messages, FetchAttFlags attributes, Boolean useUid, IEnumerable`1 sectionIds, Nullable`1
changedSince, Boolean vanished, IImapBulkItemProcessor itemProcessor)
at Microsoft.Exchange.MailboxReplicationService.ImapSourceMailbox.<>c__DisplayClass82_0.<ProcessMimeStreams>b__0()
at Microsoft.Exchange.MailboxReplicationService.ImapSourceMailbox.AcquireThrottlingDuration(IThrottleable throttleable, Action action, Boolean
trackImplicitlyThrottlingDuration)
at Microsoft.Exchange.MailboxReplicationService.ImapSourceMailbox.ProcessMimeStreams(List`1 messages, IFolderProxy folderProxy, BodySectionId bodySection, List`1
badItems, Boolean reportBadItems)
at Microsoft.Exchange.MailboxReplicationService.ImapSourceMailbox.CopyBatchOfMessages(List`1 messages, IFxProxyPool proxyPool, List`1 badItems, Boolean
reportBadItems)
at Microsoft.Exchange.MailboxReplicationService.MailboxWrapper.Microsoft.Exchange.MailboxReplicationService.IMailbox.ExportMessages(List`1 messages, IFxProxyPool
destProxies, ExportMessagesFlags flags, PropTag[] propsToCopyExplicitly, PropTag[] excludeProps, List`1 badItems)
at Microsoft.Exchange.MailboxReplicationService.MessageExporter.<>c__DisplayClass6_1.<ExportMessageBatch>b__0()
at Microsoft.Exchange.MailboxReplicationService.TransmitterWithHistory.TrackAction(Object pipelineStart, Action action)
at Microsoft.Exchange.MailboxReplicationService.MessageExporter.ExportMessageBatch(IMailbox mailbox, List`1 messages, Func`2 getProxyPool, ExportMessagesFlags
flags, PropTag[] propsToCopyExplicitly, PropTag[] excludeProps, EntryIdMap`1 transientFailuresMap, ItemPropertiesBase perBatchSettings, FailureRec& failure,
EntryIdMap`1& badItemMap)
at Microsoft.Exchange.MailboxReplicationService.MessageExporter.ExportMessagesWithBadItemDetection(IMailbox mailbox, List`1 messages, Func`2 getProxyPool,
ExportMessagesFlags flags, PropTag[] propsToCopyExplicitly, PropTag[] excludeProps, TestIntegration testIntegration, List`1 badItems, EntryIdMap`1
transientFailuresMap, OperationFlags operation)
at Microsoft.Exchange.MailboxReplicationService.MailboxMerger.CopySingleMessageBatch(FolderCopyContext copyContext)
at Microsoft.Exchange.MailboxReplicationService.MailboxMerger.CopyMessageBatch(FolderContentsMapper mapper, List`1 itemsToCopy, FolderMapping fm, Boolean
skipRequestRefresh)
at Microsoft.Exchange.MailboxReplicationService.MailboxMerger.MergeFolderContentsPaged(FolderMapping folder, ISourceFolder srcFolder, FolderContentsCrawler
sourceFolderCrawler, IDestinationFolder destFolder, TimeSpan maxOperationDuration, CopyDataFlags copyFlags)
at Microsoft.Exchange.MailboxReplicationService.MailboxMerger.CopyFolderPropertiesAndContents(FolderMapping folder, ISourceFolder srcFolder, FolderContentsCrawler
sourceFolderCrawler, IDestinationFolder destFolder, Boolean copyProperties, TimeSpan maxOperationDuration, CopyDataFlags copyFlags)
at Microsoft.Exchange.MailboxReplicationService.SyncBaseJob.CopyFolderPropertiesAndContents(FolderMapping folder, ISourceFolder srcFolder, FolderContentsCrawler
sourceFolderCrawler, Boolean shouldCopyProperties, TimeSpan maxOperationDuration, CopyDataFlags copyFlags)
at Microsoft.Exchange.MailboxReplicationService.SyncBaseJob.CrawlAndCopyFolder(FolderCrawlingInfo folderCrawlInfo)
at Microsoft.Exchange.MailboxReplicationService.Job.ExecuteWorkItemCallback(WorkItem workItem)
InnerException :
UnknownElements :
UnknownAttributes :
XmlSchemaType :