<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Contacts",
  "identifier" : "/documentation/Contacts/CNError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Contacts"
    ],
    "preciseIdentifier" : "c:@E@CNErrorCode"
  },
  "title" : "CNError.Code"
}
-->

# CNError.Code

Error codes that the system may return when you use Contacts framework methods.

```
enum Code
```

## Topics

### Errors

[`CNError.Code.authorizationDenied`](/documentation/Contacts/CNError/Code/authorizationDenied)

An error that indicates the system denied authorization.

[`CNError.Code.changeHistoryExpired`](/documentation/Contacts/CNError/Code/changeHistoryExpired)

An error that indicates the change history expired.

[`CNError.Code.changeHistoryInvalidAnchor`](/documentation/Contacts/CNError/Code/changeHistoryInvalidAnchor)

An error that indicates a change history anchor is invalid.

[`CNError.Code.changeHistoryInvalidFetchRequest`](/documentation/Contacts/CNError/Code/changeHistoryInvalidFetchRequest)

An error that indicates a change history fetch request is invalid.

[`CNError.Code.clientIdentifierCollision`](/documentation/Contacts/CNError/Code/clientIdentifierCollision)

An error that indicates a client identifier collision.

[`CNError.Code.clientIdentifierInvalid`](/documentation/Contacts/CNError/Code/clientIdentifierInvalid)

An error that indicates the client identifier is invalid.

[`CNError.Code.clientIdentifierDoesNotExist`](/documentation/Contacts/CNError/Code/clientIdentifierDoesNotExist)

An error that indicates the client identifier doesn’t exist.

[`CNError.Code.communicationError`](/documentation/Contacts/CNError/Code/communicationError)

An error that indicates a communication error occurred.

[`CNError.Code.containmentCycle`](/documentation/Contacts/CNError/Code/containmentCycle)

An error with the containment cycle.

[`CNError.Code.containmentScope`](/documentation/Contacts/CNError/Code/containmentScope)

An error with containment scope.

[`CNError.Code.dataAccessError`](/documentation/Contacts/CNError/Code/dataAccessError)

An error with data access.

[`CNError.Code.featureDisabledByUser`](/documentation/Contacts/CNError/Code/featureDisabledByUser)

An error that indicates the user disabled the feature.

[`CNError.Code.featureNotAvailable`](/documentation/Contacts/CNError/Code/featureNotAvailable)

An error that indicates the feature isn’t available.

[`CNError.Code.insertedRecordAlreadyExists`](/documentation/Contacts/CNError/Code/insertedRecordAlreadyExists)

An error that indicates the inserted record already exists.

[`CNError.Code.noAccessableWritableContainers`](/documentation/Contacts/CNError/Code/noAccessableWritableContainers)

An error that indicates there are no accessible writable containers.

[`CNError.Code.parentContainerNotWritable`](/documentation/Contacts/CNError/Code/parentContainerNotWritable)

An error that indicates the parent container isn’t writable.

[`CNError.Code.parentRecordDoesNotExist`](/documentation/Contacts/CNError/Code/parentRecordDoesNotExist)

An error that indicates the parent record doesn’t exist.

[`CNError.Code.policyViolation`](/documentation/Contacts/CNError/Code/policyViolation)

An error that indicates a policy violation.

[`CNError.Code.predicateInvalid`](/documentation/Contacts/CNError/Code/predicateInvalid)

An error that indicates an invalid predicate.

[`CNError.Code.recordDoesNotExist`](/documentation/Contacts/CNError/Code/recordDoesNotExist)

An error that indicates a record doesn’t exist.

[`CNError.Code.recordIdentifierInvalid`](/documentation/Contacts/CNError/Code/recordIdentifierInvalid)

An error that indicates a record identifier is invalid.

[`CNError.Code.recordNotWritable`](/documentation/Contacts/CNError/Code/recordNotWritable)

An error that indicates a record isn’t writable.

[`CNError.Code.unauthorizedKeys`](/documentation/Contacts/CNError/Code/unauthorizedKeys)

An error that indicates unauthorized keys usage.

[`CNError.Code.validationMultipleErrors`](/documentation/Contacts/CNError/Code/validationMultipleErrors)

An error that indicates the system encountered multiple validation errors.

[`CNError.Code.validationTypeMismatch`](/documentation/Contacts/CNError/Code/validationTypeMismatch)

A validation error that indicates a type mismatch.

[`CNError.Code.validationConfigurationError`](/documentation/Contacts/CNError/Code/validationConfigurationError)

An error with validation configuration.

[`CNError.Code.vCardMalformed`](/documentation/Contacts/CNError/Code/vCardMalformed)

An error that indicates a malformed vCard.

[`CNError.Code.vCardSummarizationError`](/documentation/Contacts/CNError/Code/vCardSummarizationError)

An error that indicates a vCard summarization problem.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)