Solved

Cannot connect current devices to Exchange 2010 using ActiveSync

Posted on 2014-11-07
6
1,327 Views
Last Modified: 2014-11-17
Hello,

I'm having a problem with Exchange ActiveSync on Exchange 2010 in Small Business 2011 environment, recently I had to roll back to a previous system state (the image was taken in May) due to a hard drive failure.
The exchange data and logs weren't on the drive that failed so they have not been rolled back at all, I had to run a repair using eseutil on the exchange to re-mount after the recovery.

Now when I connect a brand new device to a users mailbox on the server it works fine, however when the phones / tablets that were previously connected try and re-connect to the server it seems like it's connected, but then nothing is synced to the device. I receive the following error in event viewer:

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.

URL=/Microsoft-Server-ActiveSync/default.eas?User=kish&DeviceId=1071M04PRH49BCF2ECDCFVK3S0&DeviceType=iPhone&Cmd=Sync
--- Exception start ---
Exception type: Microsoft.Exchange.Data.Storage.SyncStateExistedException
Exception message: The sync state named 5 already exists.
Exception level: 0
Exception stack trace:    at Microsoft.Exchange.Data.Storage.SyncState.CreateSyncStateFolderInFolder(SyncStateInfo syncStateInfo, Folder syncStateParentFolder, PropertyDefinition[] properties, Object[] values)
   at Microsoft.Exchange.Data.Storage.SyncState.CreateSyncStateStoreObject(SyncStateStorage syncStateStorage, SyncStateInfo syncStateInfo, Folder syncStateParentFolder, PropertyDefinition[] properties, Object[] values)
   at Microsoft.Exchange.Data.Storage.FolderSyncState.CreateSyncState(SyncStateStorage syncStateStorage, Folder syncStateParentFolder, ISyncProviderFactory syncProviderFactory, String syncFolderId)
   at Microsoft.Exchange.Data.Storage.SyncStateStorage.CreateFolderSyncState(ISyncProviderFactory syncProviderFactory, String syncFolderId)
   at Microsoft.Exchange.AirSync.SyncCollection.OpenSyncState(Boolean autoLoadFilterAndSyncKey, SyncStateStorage syncStateStorage)
   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.Exchange.Data.Storage.ObjectExistedException
Exception message: Could not create folder 5.
Exception level: 1
Exception stack trace:    at Microsoft.Exchange.Data.Storage.FolderCreatePropertyBag.CreateMapiFolder()
   at Microsoft.Exchange.Data.Storage.FolderCreatePropertyBag.SaveFolderPropertyBag(Boolean needVersionCheck)
   at Microsoft.Exchange.Data.Storage.CoreFolder.Save(SaveMode saveMode)
   at Microsoft.Exchange.Data.Storage.Folder.Save(SaveMode saveMode)
   at Microsoft.Exchange.Data.Storage.SyncState.CreateSyncStateFolderInFolder(SyncStateInfo syncStateInfo, Folder syncStateParentFolder, PropertyDefinition[] properties, Object[] values)
Inner exception follows below:
Exception type: Microsoft.Mapi.MapiExceptionCollision
Exception message: MapiExceptionCollision: Unable to create folder. (hr=0x80040604, ec=-2147219964)
Diagnostic context:
    Lid: 55847   EMSMDBPOOL.EcPoolSessionDoRpc called [length=60]
    Lid: 43559   EMSMDBPOOL.EcPoolSessionDoRpc returned [ec=0x0][length=244][latency=0]
    Lid: 23226   --- ROP Parse Start ---
    Lid: 27962   ROP: ropCreateFolder [28]
    Lid: 17082   ROP Error: 0x80040604
    Lid: 25953  
    Lid: 21921   StoreEc: 0x80040604
    Lid: 27962   ROP: ropExtendedError [250]
    Lid: 1494    ---- Remote Context Beg ----
    Lid: 26426   ROP: ropCreateFolder [28]
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x668F0040
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x3FE5000B
    Lid: 15348   StoreEc: 0xFFFFFA84
    Lid: 63733  
    Lid: 5079    StoreEc: 0x80040604
    Lid: 6255    StoreEc: 0x80040604
    Lid: 6511    StoreEc: 0x80040604
    Lid: 8047    StoreEc: 0x80040604
    Lid: 7310    StoreEc: 0x80040604
    Lid: 1750    ---- Remote Context End ----
    Lid: 31418   --- ROP Parse Done ---
    Lid: 22417  
    Lid: 30609   StoreEc: 0x80040604
    Lid: 29073  
    Lid: 20369   StoreEc: 0x80040604
Exception level: 2
Exception stack trace:    at Microsoft.Mapi.MapiExceptionHelper.ThrowIfError(String message, Int32 hresult, SafeExInterfaceHandle iUnknown, Exception innerException)
   at Microsoft.Mapi.MapiFolder.CreateFolder(String folderName, String folderComment, Boolean openIfExists, Boolean createSearchFolder, Byte[] folderId)
   at Microsoft.Mapi.MapiFolder.CreateFolder(String folderName, String folderComment, Boolean openIfExists)
   at Microsoft.Exchange.Data.Storage.FolderCreatePropertyBag.CreateMapiFolder()
--- Exception end ---.

I have tried creating a new mailbox database and moving this specific user into it, and also removing the partnership for his devices within EMC and through OWA and reset the ActiveSync virtual directory to no avail.

I am getting lost and not sure where to go from here, any help is appreciated,
Norb
0
Comment
Question by:Norbert2000
  • 4
  • 2
6 Comments
 
LVL 13

Expert Comment

by:Andy M
ID: 40428320
Couple of things to try:

1. Remove the existing accounts from the affected phones.
2. For the affected user log onto OWA and under options > phones remove any partnership listed for that user.
3. Try re-adding the account.

If that doesn't work try the following:

In ADUC (Active Directory User and Computers) enable advanced features in the View menu.
Then right-click on the affected user(s) account and go to properties
Select the Security tab and click on Advanced
Click Enable Inheritance then click OK until you are back to ADUC

Then try re-adding the account to the device.

I'd recommend trying the above on one affected user first before doing every single one as depending on the number of affected accounts it can be time consuming.
0
 
LVL 1

Author Comment

by:Norbert2000
ID: 40432204
Hi Andy,

I've tried steps 1 through 3, the account seems to verify and go on the phone but there's nothing synced. What i have also tried is getting a the user to reset his phone (iPhone 5) and then adding the account the reset phone. This seemed to work but when he restored his settings / apps it started not syncing again.

I will try the ADUC solution above and come back.

Norb
0
 
LVL 1

Author Comment

by:Norbert2000
ID: 40432388
in Active Directory the user was already inheriting permissions, so i unticked and added the permissions and then re-ticked the inherit permissions button. Tried the phone again and still the same, connects but doesn't sync anything with the same event log on the server.

Norb
0
Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

 
LVL 13

Expert Comment

by:Andy M
ID: 40434857
Hmm, is the server fully up-to-date with exchange service packs and updates?

Could also try disabling Activesync for the account on exchange, remove the account from the device, re-enable activesync on the account in exchange and then try re-creating the account on the device.
0
 
LVL 1

Accepted Solution

by:
Norbert2000 earned 0 total points
ID: 40437858
Server is fully up to date. I tried what you suggested but still the same problem. I have now removed the exchange mailbox for the users and re-add and re-imported the mail and it seems to be working.

Thanks for the help.
0
 
LVL 1

Author Closing Comment

by:Norbert2000
ID: 40446863
After trying to solve the issue I resorted to a workaround of removing and re-adding the exchange accounts.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
powershell mailbox move question 8 50
Exchange 2013 windows CU or windows update first 3 19
Edge Server Subscription 5 21
Exchange 2007 6 21
Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
how to add IIS SMTP to handle application/Scanner relays into office 365.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question