OSX iCloud Contacts not syncing

In the last month I was plagued by a Addressbook problem on one of my macs. No matter what, only about 500 of my over 1000 contacts where syncing on my Mac Pro. I have tired many times to disable and re-enable the contacts, to export all the contacts on the only mac where my contacts were complete, empty the address book and reimporting the contacts, but with limited success. Some corrupt contact was blocking my Mac Pro form syncing.

The console messages where not really helpful ranging from a generic

AddressBookSourceSync[1717]: -[ABAddressBook save] failed. (<ABAddressBook: 0x7ff22409be10>)
AddressBookSourceSync[1717]: [CardDAVPlugin-ERROR] -_saveChanges: [syncAddressBook(<ABAddressBook: 0x7ff22409be10>) save] FAILED

to a more usefull

AddressBookSourceSync[1717]: Error saving address book: Error Domain=NSCocoaErrorDomain 
Code=1570 "originalLine is a required value." UserInfo=0x7ff221476830 {NSValidationErrorKey=originalLine, NSLocalizedDescription=
originalLine is a required value., NSValidationErrorObject=<NSManagedObject: 0x7ff2260b0bd0> (entity: ABCDUnknownProperty; id: 0x
7ff2260b0e30 <x-coredata:///ABCDUnknownProperty/tDF644D3A-163E-41D1-9FF1-FE3FFFEACCB9313> ; data: {
            originalLine = nil;
            owner = "0x297080014b <x-coredata://27456235-94C4-4D22-865D-648669DD6CA2/ABCDContact/p42434>";
            propertyName = "X-MS-OL-DESIGN";

X-MS-OL-DESIGN was a starting clue so I exported again all contacts in vcf and opened the file in a text editor to find which ones had the X-MS-OL-DESIGN property. The idea was to edit them, and remove the offending property. But first I wanted to check if this was really the cause of my problems. So every time I found a contact with the X-MS-OL-DESIGN property I copied it into a secondary iCloud account that I created years ago and deleted it from my primary account. After removing all entries with the X-MS-OL-DESIGN property, I was able to sync all remaining contacts on the Mac Pro. Moreover, by moving the offending contacts to the secondary account, the offending property was gone, and I was able to move them back in the primary account and they where synced perfectly.

9 Replies to “OSX iCloud Contacts not syncing”

  1. You are the man!
    Many many thanks for this post on cpmtacts npot syncing.
    Opened v-card with textwrangler, found 2 contact with the offending x-mo-whatever. delted them. Now all is fine. Very much appreicate your post.

  2. You, sir, are a scholar and saved my iCloud contacts. Been working on that for the whole day until I found your method. Applause!

  3. Thank you so much for this information! It helped me resolve sync issues using carddav with OS X server!!!!

  4. Thanks! I had the same problem just today. My Property was “SORT-STRING” but I did as you said: export it in icloud, check for the problematic entries, moved them.

Leave a Reply

Your email address will not be published. Required fields are marked *