Summary:

Corrupt items in an Exchange mailbox may cause errors when running a synch.

Symptoms:

Exchangesyncengine.log:

2013-06-07/14:15:54.733/EDT [Sync Source APPOINTMENT Queue Thread] ERROR com.sage.scrm.syncengine.exchange.ews.service.SageExchangeService.getItems com.sage.scrm.syncengine.exchange.ews.service.error.SageDetailedExchangeServiceException: Parsed Exchange Exception:
Main exception string: Data is corrupt.

Exception code: ErrorCorruptData

Impersonated user: dolanw@panoply-tech.com

Exchange item id:AQMkAGZkODY1YWUyLWYzMDctNGYzMC1hMjFmLTVhZTBkMmE1N2M0YwBGAAADB3LOSS3GPUajzmOF2vxokQcAHJc7cphh7k2rvBnCKJPoTgAAAjPDAAAAmbWfKh7BaUCZe9vk2Z69QQAxYn3DdABBBB==

2013-06-07/14:15:54.742/EDT [Sync Source APPOINTMENT Queue Thread] ERROR com.sage.scrm.syncengine.exchange.ews.sdata.sync.SyncSourceAppointmentsManager.getSyncActionForResource com.sage.scrm.syncengine.exchange.ews.service.error.SageDetailedExchangeServiceException: Parsed Exchange Exception:
Main exception string: Data is corrupt.

Work around / Resolution:

The error was caused by corrupt items on the Exchange side of the integration. Since the items fell outside of the window for synched items, removing the links from CRM resolved the issue.

delete from EcngSyncResource where exsr_SyncResourceID = (
select EWRE_SyncResourceID from EWSRecordState
where EWRE_RecordGlobalID = N'AQMkAGZkODY1YWUyLWYzMDctNGYzMC1hMjFmLTVhZTBkMmE1N2M0YwBGAAADB3LOSS3GPUajzmOF2vxokQcAHJc7cphh7k2rvBnCKJPoTgAAAjPDAAAAmbWfKh7BaUCZe9vk2Z69QQAxYn3DdABBBB=='
)

delete from EWSRecordState
where EWRE_RecordGlobalID = N'AQMkAGZkODY1YWUyLWYzMDctNGYzMC1hMjFmLTVhZTBkMmE1N2M0YwBGAAADB3LOSS3GPUajzmOF2vxokQcAHJc7cphh7k2rvBnCKJPoTgAAAjPDAAAAmbWfKh7BaUCZe9vk2Z69QQAxYn3DdABBBB=='

An alternative method of resolving the issue would involve removing the items on the Exchange side of the integration using a MAPI editor.