EWS API SyncFolderItems ServiceResponseException

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

August 8th, 2013 6:57am

Well if you have the ItemId of the Item that is causing the problem you could Move or Delete it using the MoveItems http://msdn.microsoft.com/en-us/library/exchange/dd635921%28v=exchg.80%29.aspx or DeleteItems batch method which just take the ItemId.

Cheers
Glen

Free Windows Admin Tool Kit Click here and download it now
August 9th, 2013 3:48am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics