8 Replies Latest reply: Jun 29, 2012 9:34 PM by jfaughnan
jfaughnan Level 3 Level 3 (780 points)

I've recently migrated to iCloud. Prior to the migration I used MobileMe.

 

After the migration I have 1831 contacts on the iCloud site, 1828 on my MacBook Air and MacBook, and 1829 on my iPhone. The "reference" address book prior to migration had 1831 contacts.

 

I haven't been able to find any information on troubleshooting this kind of sync bug.

 

Any tips? Resources?

 

Thanks!

  • 1. Re: Troubleshooting iCloud Contact count mismatch
    Winston Churchill Level 10 Level 10 (81,980 points)

    Are you able to isolate which contacts I'm not synchronising between contact lists.

  • 2. Re: Troubleshooting iCloud Contact count mismatch
    jfaughnan Level 3 Level 3 (780 points)

    No, with 1,831 Contacts I don't have a convenient way to find the missing/duplicate 3.

     

    I followed the usual troubleshooting maneuver of logging out from a machine, removing all iCloud data, etc. I did that on my Air and my iPhone. None of the counts changed.

     

    Incidentally, the MobileMe to iCloud transition on my Air failed and left the machine in a curious MobileMe/iCloud state (the Pref Pane crashed and sent an error message to Apple). I think I've fixed that though; i had to remove accounts in Mail, Contacts and Calendar prefs. Despite cleaning out the MacBook, when I was done it again has 1828 Contacts.

     

    So...

     

    ... 1831 contacts on the iCloud site, 1828 on my MacBook Air and MacBook, and 1829 on my iPhone. The "reference" address book prior to migration had 1831 contacts.

     

    Thanks!

  • 3. Re: Troubleshooting iCloud Contact count mismatch
    Winston Churchill Level 10 Level 10 (81,980 points)

    My first inkling would be that one or more of your contacts either doesn't meet the rules for iCloud, or has text or photo that is causing a problem. Obviously without being able to isolate which contacts are causing the problem, you would not be able to examine the contacts for these possible causes.

  • 4. Re: Troubleshooting iCloud Contact count mismatch
    jfaughnan Level 3 Level 3 (780 points)

    Yes, my contacts are old. They probably go back to Classic. At one time they were synchronized by Spanning Sync. I would also wonder about an illegal character.

     

    Or perhaps there's a duplication problem with iCloud.

     

    I own Contacts Cleaner. I'm going to run it against my old Snow Leopard Contacts collection and look for issues, then correct those issues on iCloud.com and see if the fixes propagate.

     

    Synchronization has been the bane of my existence since I first used a Palm device...

     

    [1] http://itunes.apple.com/us/app/contacts-cleaner/id411369012?mt=12

  • 5. Re: Troubleshooting iCloud Contact count mismatch
    jfaughnan Level 3 Level 3 (780 points)

    Also some of my Contacts have VERY long notes. I wonder if I'm exceeding a semi-documented limit on Lion that wasn't a limit on Snow Leopard, and if iOS has a yet another lenght limit.

  • 6. Re: Troubleshooting iCloud Contact count mismatch
    jfaughnan Level 3 Level 3 (780 points)

    I've figured out a part of the problem.

     

    Each time iCloud synchronizes with a machine it's been duplcating the contents of the Notes field on my contacts. I checked my Snow Leopard original and it didn't show this problem, it wasn't a problem in MobileMe either.

     

    I'm so glad I didn't move my main machine and core Address Book to Lion / iCloud.

     

    This is now an official "synchronization train wreck". I'll be bailing from iCloud, and will probably drop (way) back to synchronizing my iPhone via iTunes.

     

    Mercifully, save for lack of sleep, minimal damange was done.

  • 7. Re: Troubleshooting iCloud Contact count mismatch
    jfaughnan Level 3 Level 3 (780 points)

    I think I've figured out the bug.

     

    It's the oldest bug in the book -- line termination. (http://en.wikipedia.org/wiki/Newline)

     

    My Address Book contains contacts that started out in Outlook, then went via MobileMe Windows Control Panel to live in MobileMe, and then into my desktop machine.

     

    MobileMe could handle the CR vs CR/LF difference. So can Address Book in Lion and in Snow Leopard.

     

    iCloud can't.

     

    I'm seeing extra line spaces in all of my contacts with notes that started out life on Windows.

     

    Each time iCloud does its sync with desktop it finds a mismatch -- because OS X and iCloud handle CR and CR/LF differently.

     

    So it replicates the Note.

     

    The Note grows eternally, until everything crumps.

     

    Nasty bug! I hope Apple figures this one out soon.

  • 8. Re: Troubleshooting iCloud Contact count mismatch
    jfaughnan Level 3 Level 3 (780 points)

    I'm updating my blog post [1] as I work this bug.

     

    I found an OS X Service item that will convert text to Macintosh line endings. So I can fix my Notes one at a time using this.

     

    I can also use Bento (demo download) to identify which of my Contacts have Notes. Since I know which came from Windows originally, it may be most practical to use the OS X service to fix the Notes field one at a time.

     

    I've found I can test for iCloud.com incompotabile Card Notes by vCard export. Contacts with Windows CRLF in Notes have duplicated /n strings in the vCard. After the Service fix they don't.

     

    So It's tedious, but probably practical, to manually fix my Contacts this way. I thought of trying to use Automator or AppleScript to do this, but it may be faster to do this manually.

     

    [1] http://tech.kateva.org/2012/06/icloud-transition-went-as-expected.html