Thursday, September 17, 2015

Exchange ActiveSync Returned an HTTP 500 Error

Today, I Experienced problem with one mobile user connected to Exchange 2010 using Android device or Any mobile device cannot automatically sync inbox but can send email. Using alternative method (Exchange, IMAP & POP) of sync email as well as install Android 3rd party application synchronize inbox email with no luck. After searching the whole information on the internet found the issue when test connection using Microsoft tools ( Microsoft Remote Connectivity Analyzer ) and reported error "Exchange Active Sync returned an HTTP 500 Error" especially when "Testing of the GetEstimate command failed" in the test step information.

When I checked logs in the server email and found:

Event ID : 1008
"An exception occurred and was handled by Exchange ActiveSync. This may have been caused by an outdated or corrupted Exchange ActiveSync device partnership. This can occur if a user tries to modify the same item from multiple computers. If this is the case, Exchange ActiveSync will re-create the partnership with the device. Items will be updated at the next synchronization."

Active Sync Exception 
"--- Exception start ---
Exception type: Microsoft.Exchange.Data.Storage.ObjectNotFoundException
Exception message: ICS synchronization failed.
Exception level: 0
Exception stack trace:    at Microsoft.Exchange.Data.Storage.MailboxSyncProvider.CatchUpIcsState(MailboxSyncWatermark currentWatermark)
   at Microsoft.Exchange.Data.Storage.MailboxSyncProvider.GetMaxItemWatermark(ISyncWatermark currentWatermark)
   at Microsoft.Exchange.Data.Storage.FolderSync.EnumerateServerOperations(Int32 windowSize)
   at Microsoft.Exchange.AirSync.SyncCollection.GetServerChanges(UInt32 maxWindowSize, Boolean enumerateAllOperations)
   at Microsoft.Exchange.AirSync.SyncCommand.SyncTheCollection(SyncCollection collection, Boolean createSubscription, Boolean tryNullSync)
   at Microsoft.Exchange.AirSync.SyncCommand.OnExecute()
   at Microsoft.Exchange.AirSync.SyncCommand.ExecuteCommand()
   at Microsoft.Exchange.AirSync.Command.WorkerThread()
Inner exception follows below:
Exception type: Microsoft.Mapi.MapiExceptionNotFound
Exception message: MapiExceptionNotFound: Unable to synchronize manifest. (hr=0x8004010f, ec=-2147221233)"




There are found links & several information related to that issue, you can find easy information to read but the problem still exist.
Exchange ActiveSync Returned an HTTP 500 Error
How to troubleshoot server ActiveSync HTTP error codes

After weeks of searching and finding, finally the problem has been resolved. Found out that the problem is with the mailbox  corrupt related to Exchange Active Sync connection. Next step is to process the repair in the Exchange PowerShell server email by typing command bellow:

"New-MailboxRepairRequest -Mailbox user@domain.com -CorruptionType SearchFolder, AggregateCounts, ProvisionedFolder, FolderView"

Mailbox Repair in Exchange 2010/2013

When you finished process repair, apply to reconnecting the active sync using mobile devices again, and testing Tools ( Microsoft Remote Connectivity Analyzer ) and now user was able to synchronizing email Inbox and errors disappeared.

Conclusion:
One can easily fix the Exchange Active Sync HTTP 500 Error once the root cause is estimated. The above mentioned section elaborates different probable causes of the sync issues and also explains about different methods to troubleshoot it. But it is highly recommended to perform these work-around methods carefully as any blunder in settings can cause more frantic situations.

No comments: