CNContactStore save fails with 500 Error Code

When attempting to save a contact that has populated Social Profile data the following error is encountered: This is seen in IOS 9.2


Domain=CNErrorDomain,Code=500 "(null)" UserInfo={CNKeyPaths=(SocialProfiles), NSUnderlyingError=0x1612681f0{Error Domain=ABAddressBookErrorDomain Code=0 "(null)"}}


I am serializing a contact that already exists in a different phone's address book and when I look at the attributes for the Facebook social Profile Inotice that the UserIdentity attribute is nil (null).


I'm not sure if I am just missing some knowledge on how this works and this is expected behavior, a usage problem or is it a defect ?


Thank you for your help on this...


William

Replies

Might be a bug in a version of iOS, but you don't say which you've tested, so...

I have this error when the Contacts app is configured to store contacts in an Exchange account. When I choose an iCloud account as a default it immediately saves a contact well. I can check what is set on your device in Settings -> Contacts -> Default Account