IOS CNContactStore executeSaveRequest fails with CNErrorDomain Code=500
Asked Answered
M

1

6

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?

Millenarianism answered 5/1, 2016 at 0:35 Comment(1)
How many social profiles are you trying to save? Do they have a valid label and value for the CNLabeledValue object?Venegas
M
1

Solved. The issue was that the default contact account was an exchange account. The socialProfile save is not allowed in this type of container. Solution is to remove the unsupported property and attempt the save again.

Millenarianism answered 2/5, 2016 at 4:39 Comment(1)
It is! This error appears when the Contacts app is bound to an Exchange accountHoop

© 2022 - 2024 — McMap. All rights reserved.