Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

I can't sync "Contacts" because of an error

I've got a systematic error. Contacts don't sync. I've got an alert triangle in front of iCloud group with this error :

"[NSInvalidArgumentException] *** -[__NSSetM addObject:]: object cannot be nil"

I cannot search in "all"


Other users have this with Mail or Contacts

See : mail preview windown blank


(I can't insert the save screen here because of a bug (insert image button inactive after the file be chosen.)

MacBook Pro (Retina, Mid 2012), OS X Mountain Lion (10.8.1), French

Posted on Sep 9, 2012 10:55 AM

Reply
6 replies

Sep 17, 2012 9:22 AM in response to JYTX

I have ther exact same problem. Just upgraded to Mountain Lion. Contacts don't show in my All Contacts window, and next to iCloud there's a triangle:


NSInvalidArgumentException] *** -[__NSSetM addObject:]: object cannot be nil


It lets me see my groups, and click on them and search within the groups, but it doesn't let me search my entire database anymore, which renders it unusable (5000+ records).


Please adivse.

Sep 20, 2012 6:30 AM in response to regista

I finally worked around it. I tried to read Contacts after updating Mac Os X Mountain Lion to 10.8.2. Was empty. I tried to interrogate it and had another error telling there was a problem due to Contacts. Well…

I was sure that the version on the cloud was good since it continued to sync well with my iPhone.


I went to iCloud preferences accounts, then suppressed contacts from the list, and chose it again. Then all seems to be working fine.


Only lost some recent modifications done on the mac which had never been synced.

Oct 11, 2012 3:52 AM in response to JYTX

I think I found the root cause. I couldn't get my contacts to sync because of the same "object cannot be nil".


I had Contacts open when I turned off the iCloud Contacts in Preferences. I said don't keep a copy on my Mac. When I did that, I found a couple of groups wiht no name (the group names were just blank). I gave them names (nil and non-nil!) and then was able to delete the groups from my Mac's contacts. Then I re-checked Contacts syncing, and it worked much better!


I think that the object that couldn't be nil was the group name, which prevented iCloud syncing. That makes sense.


Darryl

Jan 15, 2013 8:51 AM in response to JYTX

Open System Preferences > iCloud Deselect iCloud Syncing on Contacts. You will be asked if you want to delete the contacts from your computer - select yes. Wait 2 minutes. Select Contacts you will see a dialogue "setting up". Contacts on your computer. Open iCloud.com > Contacts - wait a moment, everything syncs back to normal including recently added contacts and group settings. Worked for me.

I can't sync "Contacts" because of an error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.