Hi
Using EWS API 2.0 against Exchange 2010 SP2
I'm having an issue with a particular user SyncFolderItems method call against their Calendar folder where a ServiceResponseException is being generated stating "The property has an invalid value." and the response states the ErrorProperty.Item is ICalUID.
So, to investigate further, I changed the SyncFolderItems method PropertySet parameter to IdOnly rather than FirstClassProperties. I then used the resulting ItemId in Item.Bind method to get to the item rather than the appointment. The results are the same, a ServiceResponseEXception is generated, the ErrorProperty.Item is null as expected as ICalUID is not a property on the Item. My only reasoning here is that there is a corrupt item/appointment sitting in this users calendar.
Can someone please point me to a fix for this or some guidance as to code around it or if there's a tool I can get the Exchange admin to run on the mailbox to clear out corrupted items? I'm processing SyncFolderItems in batches of 512. 1 at a time is not an option, and neither get IdOnly then additional calls to get the FirstClassProperties.
I really think there is a bug in the API as it's not handling this corrupted (assumed) item. Any thoughts, ideas would be greatly appreciated. If you need any further information just ask.
Kind regards,
Lee