Link to home
Start Free TrialLog in
Avatar of SECC_IT
SECC_ITFlag for United States of America

asked on

ActiveSync Error

Exchange 2010 SP3 RU4

On an HTC older Android phone, I am getting Event ID 1008, Source MSExchange ActiveSync.

"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."

This phone was working just fine with ActiveSync until I had a database crash and had to run a repair. Now, no matter what I do, it won't download mail. When I set up the user's account, it DOES connect with the server, but the mail never downloads. The above message shows up.

I have tried all the usual stuff - checked/unchecked/checked the inheritance box in Security, taken away all admin rights, removed/readded the account on the phone, disabled/re-enabled ActiveSync in the users mailbox properties, restarting services, futzing with all the settings (making user name and email the same),

Does anyone have any ideas? It WAS working, now it is not.

Thanks.
Avatar of Nick Rhode
Nick Rhode
Flag of United States of America image

Check the ActiveSync Mailbox Policies (Open EMC > Organization Config > Client Access)

I know for some older devices you want to make sure allow non-provisionable devices needs to be checked.
Avatar of SECC_IT

ASKER

Checked it - it IS checked.  That was something I hadn't thought of...

Any other ideas out there?
Now when you said added/readded etc was this only on the phone?  Since the database crash remove the account on the phone.  Then open up EMC > Recipient Configuration > Mailbox.  Rightclick the users mailbox and select Manage Mobile Phone.  Remove the device from the mailbox.  Now re-setup the account on the phone to see if it establishes a new trusted relationship
Avatar of SECC_IT

ASKER

I did not do that specifically - I do not have a "manage mobile phone" option in the right-click menu in Recip Config > Mailbox.

However, one of the things I had tried was deleting the account on the phone, then logged in to OWA as the user and deleted the relationship there - started fresh. It will let me set up an account, but will not download mail.
Avatar of SECC_IT

ASKER

This is still not resolved and I have tried so many things. I found this in another EE post, but it did not work for me:

1. Disable Activesync on the Exchange account.
2. Uncheck inheritable permissions
3. Delete CN=ExchangeActiveSyncDevices from under my user container in ADSIEdit
4. Force AD Replication
5. Enable Activesync on my Exchange account
6. Check Inheritable permissions
7. Force AD Replication
8. Create Exchange profile on my iPhone.

I have also created a new database and move his box over.

I am really at a loss here and this is the company owner's phone.

I used the Microsoft Remote Connectivity Analyzer and it was successful.

The account is being verified, but e-mail will not show up on the phone.

-----Event 1008-Details (Friendly View)----------------------------------------------------------------
 /Microsoft-Server-ActiveSync/default.eas?Cmd=Sync&User=rsmart&DeviceId=HTCAndf0bd1d14&DeviceType=bravoc
   --- Exception start --- Exception type: Microsoft.Exchange.Data.Storage.SyncStateExistedException Exception message: The sync state named 7 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 7. 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 ---

-----------------------------------------------------------------------------
Help!
Avatar of Alan Hardisty
If you open up ADSIEDIT.MSC (and very carefully), navigate to your user using Default naming Context then under the user, do you see CN=ExchangeActiveSyncDevices?

If you do - select that in the left pane and do you see the Device in the right pane?  If you do - delete it.

Once deleted, delete the account from the phone and then reboot the phone, then add the account to the phone again and see how it behaves.

Alan

(Be very careful what you are deleting as this is directly modifying Active Directory so any mistakes could be costly).
Avatar of SECC_IT

ASKER

Sigh - I have done that exact thing, several times. Did not work.
Sorry - missed that!!

Does the account that you are trying to add work happily on another device, just not the older HTC?

Alan
Avatar of SECC_IT

ASKER

It works fine on a laptop. It WAS WORKING FINE on this very same phone until the Crash that Made My Life Hell. I am so frustrated!
Have you tried moving the mailbox to a different store?
Avatar of SECC_IT

ASKER

Yes I have created a new mailbox db and move the box.

I have also tried this, and am waiting for the user to let me know if it worked (he had to leave):

--------------------------------------------------
From:  http://grumpysysadmin.wordpress.com/2011/09/16/user-cant-connect-to-activesync/

The other tool you can use is the MFCMapi tool (download from codeplex). Create a profile for the user on a PC (not-cached mode) and give yourself full mailbox access, or do it from the user’s PC.
1. From the session menu, choose to Logon and Display Store Table
2. Select the profile (can’t be in cached mode)
3. Double-click to open the mailbox of the affected user.
4. Expand the root container, expand the ExchangeSyncData container. Locate the device ID, and delete it. If you are having issues with a IPad…delete all devices and then re-add the activesync account to the iPad. Issues maybe caused by devices that are no longer used by the user.
 
If there still is no device connectivity check the inherited permissions on the User’s object in AD
Open up ADUC and go into advanced security settings of the problematic user’s account
 
Make sure that Include inheritable permissions is selected. If it is not selected, check it off and click Apply. ActiveSync will most likely start working shortly after Exchange detects the change in the user object permissions.
---------------------------------------------------------
When I say another device, I don't mean a laptop because the laptop doesn't use Activesync to communicate, it uses MAPI.

Can you happily add the account to a different mobile device, preferably not an HTC one?
Avatar of SECC_IT

ASKER

Yes. Sigh. So it is the device.
Okay - so is it on the latest version of the software?

Can it be upgraded?

Alan
ASKER CERTIFIED SOLUTION
Avatar of SECC_IT
SECC_IT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yay - sounds like the perfect solution.  Get a more up-to-date phone :)

Let's hope that fixes it for you.

Best wishes

Alan
Avatar of SECC_IT

ASKER

Problem was the phone.
Avatar of dpcsit
dpcsit

Did u replace phone or reset or what?