# Bug: Incomplete ActiveSync contact sync [released]

Short version:
I have 192 contacts in my exchange account, only 160 of them are synced to the Jolla.

Long version:
"/usr/bin/contacts-tool list" shows only 160 entries (the same as in the contact app). I found out all the missing contacts on the Jolla are created or modified recently. (In the outlook client it is possible to sort by "changed date".) So it seems the contact sync process stops at some point. Older contacts are synced ok during the initial sync after creating the exchange account on the Jolla. Changes to existing contacts (on the exchange side) as well as new contacts are not synced to the Jolla (after the first initial sync).
Deleting the exchange account on the Jolla and recreate it gives the same result. The same contacts are missing. There is nothing special with this contacts.
Modifying an "old" contact on the exchange (and recreate the exchange account on the Jolla) makes this contact to no longer sync to the Jolla. However another contact (the next one according to change date) is synced in that case (gives still a total of 160 contacts on the device). Is there a limitation of 160 contacts?
Restarting the contact daemon in the console (using "/usr/bin/contactsd --log-console") shows no obvious error messages. Is there anything else to try to debug the problem?

Obviously for most of the Jolla users the contact sync via ActiveSync works ok. For me the problem exists since the initial firmware version. I hoped the problem would be solved with the latest firmware 1.0.3.8. However this is not the case. Syncing of mails and calendar entries works as expected, the problem is only with contacts. ActiveSync with Exchange 2013 is used.

edit retag reopen delete

### The question has been closed for the following reason "released in a software update"by VDVsx close date 2014-03-18 10:10:52.977972

This seems to be a duplicate of https://together.jolla.com/question/9902/mfe-exchange-sync-no-profiled-contacts-no-globals-and-no-two-way/ and a major issue for those relying on an existing Exchange infrastructure for their contacts. I'm not affected myself but know people who are.

( 2014-02-01 12:41:48 +0200 )edit

Hi, Alex25! Thx ever so much for your hint... it solved my problem, too. (sometimes partners can be disturbing, indeed... lol)

( 2014-02-01 17:07:02 +0200 )edit

Sort by » oldest newest most voted

I found the problem (at least for my problem). One of the contacts had a spouse ("Partner" in german) set. Removing this value from this particular contact fixed the issues. All contacts are correctly synced now. All modification on contacts are instantly sync to the Jolla now. The bug should be easily to fix by Jolla now.

I found it out by further analyze the activesync logs:

...
[1166] Feb. 01 12:03:38 [Debug] AS_LIB :        <Contacts::Spouse>Natalie</Contacts::Spouse>
...
[1166] Feb. 01 12:03:38 [Debug] Contacts :  url  ""  spouse "Natalie"
...
[1166] Feb. 01 12:03:38 [Debug] Contacts :  ContactsSyncStart signal is sent for account 16
[1166] Feb. 01 12:03:38 [Warning] "Invalid detail type: Family"
[1166] Feb. 01 12:03:38 [Warning] "Error creating contact: 3 syncTarget: MfE#16"
[1166] Feb. 01 12:03:38 [Error] bool save(QtContacts::QContactManager&, QList<QtContacts::QContact>&, OrderedItemPtrs&, int) failed to save contacts, err = 3
[1166] Feb. 01 12:03:38 [Debug] Contacts :  droping 0 contacts
[1166] Feb. 01 12:03:38 [Error] ExternalFolder "118" ( "Kontakte" ): error while applying server changes
[1166] Feb. 01 12:03:38 [Error] Folder "118" ( "Kontakte" ): GenericFolder::updateItems() error while saving server changes
[1166] Feb. 01 12:03:38 [Error] AS_LIB : Error while applying server changes. Abort sync for folder 118
[1166] Feb. 01 12:03:38 [Debug] AS_LIB :  Folder 118, trying to advance to state 7
[1166] Feb. 01 12:03:38 [Debug] Contacts :  virtual void ContactsStorageImpl::dupeSearchMode(bool) search dupes is already false
[1166] Feb. 01 12:03:38 [Debug] General :  Folder "118" ( "Kontakte" ): GenericFolder::syncCompleted( failed )
[1166] Feb. 01 12:03:38 [Debug] General :  Job JobSync(0x2333858) (Sync): progress changed to 0
[1166] Feb. 01 12:03:38 [Debug] Storage :  MfeStorage::saveFolder( 2262 )
[1166] Feb. 01 12:03:38 [Debug] Storage :  MfeStorage::saveFolder (5)
[1166] Feb. 01 12:03:38 [Debug] Storage :  MfeStorage::saveFolder (6)
[1166] Feb. 01 12:03:38 [Debug] Storage :  updating custom fields for 1 ids in table ' "folderscustom" '
[1166] Feb. 01 12:03:38 [Debug] Storage :  Table:  "folderscustom"
[1166] Feb. 01 12:03:38 [Debug] Storage :  -1 records found
[1166] Feb. 01 12:03:38 [Debug] Storage :  insert 1 , update 2 , delete 0 custom records
[1166] Feb. 01 12:03:38 [Debug] Storage :  MfeStorage::saveFolder (7)
[1166] Feb. 01 12:03:38 [Debug] Contacts :  ContactsSyncEnd signal is sent for account 16 created 1 , deleted 1

more

@alex25 Stupid question. Where / how do you get activesync log in Jolla (JollaC).

( 2016-08-10 16:51:25 +0200 )edit

Hi, Alex25! Thx ever so much for your hint... it solved my problem, too. (sometimes partners can be disturbing, indeed... lol)

more

Fixed in Sailfish 1.0.4.20, Ohijärvi, account re-creation is needed, if you still have issues please comment here.

more

Confirmed. Fixed in 1.0.4.20.

( 2014-03-17 22:17:27 +0200 )edit

Problem not fixed for me... Recently reset my phone, since then a couple of my Exchange contacts aren't synced anymore or miss phone numbers.

( 2014-06-06 17:05:15 +0200 )edit

@caprico - Did you created the account after all updates ? if you reset the phone it went to a older version of the OS, ot have everything working as expected you should create the acct using mentioned version or latest than that.

( 2014-06-07 11:05:57 +0200 )edit

@VDVxs Thanks for your reply. I created the account after re-installing all the updates. Even the backup brought back same missing phone numbers. But it seems that the problem is gone for me since 1.0.7.16 Saapunki :-) So everything's all right now.

( 2014-06-11 13:24:36 +0200 )edit