MacOS – Contacts has trouble syncing with the Google account. What to do

contactsgooglegoogle-syncmacos

enter image description here

I have Contacts (Version 8.0 (1365)) running under Mac OS X 10.9.1. I have it connected with my Google account. But it keeps showing that it is busy syncing. Changes made on other devices don't come through. (Other devices do sync with each other.) How can I solve this?

NB: After some time the "wheel" disappears, but still the new contact isn't there…

Best Answer

From your error message:

Contacts: CoreData: error: exception during obtainPermanentIDsForObjects: Fetching maximum primary key failed with userInfo of { NSSQLiteErrorDomain = 11; }

I am guessing that the SQLite DB of your Contacts.app is corrupted.

I would recommend taking the following steps:

  1. Export a backup archive of your contacts (if they are not all on Google)

    1. You can do this by going to File > Export... > Contacts Archive
    2. Quit Contacts.app
  2. Delete the offending SQLite Database

    1. From the Finder, select Go > Go To Folder from the menu.
    2. Type in ~/Library/Application Support/AddressBook/
    3. Select all those files: Edit > Select All
    4. Put them in a folder: File > New Folder With Selection
    5. Move the folder to the Trash. (In case something goes wrong, we can restore everything)
  3. Launch Contacts.app and re-create your Google account

  4. Re-import your contacts archive (again, only if they are not all on google's servers. Otherwise, just let it re-sync.)

Let me know if this works for you!