Curious Joe on Sun, 06 Jun 2010 08:30:05
In Outlook 2007, when I execute the subroutine located on the online help page entitled "How to: Delete All Items and Subfolders in the Deleted Items Folder", the following error is returned:
Run-time error '-2147352567 (800200009)':
One or more items in the folder you synchronized do not match. To resolve the conflicts, open the items, and then try this operation again.
The error occurs when the oItems.Item(i).Delete statement is executed. Here is the code:
Dim oDeletedItems As Outlook.Folder
Dim oFolders As Outlook.Folders
Dim oItems As Outlook.Items
Dim i As Long
'Obtain a reference to deleted items folder
Set oDeletedItems = Application.Session.GetDefaultFolder(olFolderDeletedItems)
Set oItems = oDeletedItems.Items
For i = oItems.Count To 1 Step -1
Set oFolders = oDeletedItems.Folders
For i = oFolders.Count To 1 Step -1
Apparently, the item that is being deleted has a conflict (i.e., oItems.Item(i).IsConflict = "True"). But, I haven't been able to figure out how to resolve the conflict programmatically. Executing the Conflicts property returns an error (e.g., Debug.Print oItems.Item(i).Conflicts.Count).
Outlook 2007 is using a mailbox from Microsoft Exchange Server 8.1.393.1.
Any help would be much appreciated.
Bessie Zhao on Tue, 08 Jun 2010 09:57:54
For this question, here is a thread you could refer to: http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/d1bc4ec6-58e6-4fb1-ba0d-5fb364954a2e. As far as I see, you also could try to use SyncObject to sync the message with Exchange Server: Application.Session.SyncObjects.Item(1).Start.
If this post does not help you, please feel free to follow up.
DawnTreader777 on Thu, 21 Jun 2012 18:04:29
the item.isconflict thing just helped me immensely. thanks for the posts.
totszwai on Wed, 07 Dec 2016 19:39:13
How exactly do you access the Conflict inside Conflicts??
In Outlook when I try to determine whether the MailItem "isConflict" or not then try to access its conflicts, it throws this exception:Exception: adxOutlookEvents_ExplorerSelectionChange @ AddinModule.cs:2187
System.Runtime.InteropServices.COMException (0x96A20009): One or more items in the folder you synchronized do not match. To resolve the conflicts, open the items, and then try this operation again.
at AddinModule.adxOutlookEvents_ExplorerSelectionChange(Object sender, Object explorer)
Basically the exception is thrown when I try to grab the conflicts via MailItem.Conflicts.