<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:@E@CKErrorCode"
  },
  "title" : "CKError.Code"
}
-->

# CKError.Code

The error codes that CloudKit returns.

```
enum Code
```

## Topics

### Error Codes

[`CKError.Code.accountTemporarilyUnavailable`](/documentation/CloudKit/CKError/Code/accountTemporarilyUnavailable)

An error that occurs when the user’s iCloud account is temporarily unavailable.

[`CKError.Code.alreadyShared`](/documentation/CloudKit/CKError/Code/alreadyShared)

An error that occurs when CloudKit attempts to share a record with an existing share.

[`CKError.Code.assetFileModified`](/documentation/CloudKit/CKError/Code/assetFileModified)

An error that occurs when the system modifies an asset while saving it.

[`CKError.Code.assetFileNotFound`](/documentation/CloudKit/CKError/Code/assetFileNotFound)

An error that occurs when the system can’t find the specified asset.

[`CKError.Code.assetNotAvailable`](/documentation/CloudKit/CKError/Code/assetNotAvailable)

An error that occurs when the system can’t access the specified asset.

[`CKError.Code.badContainer`](/documentation/CloudKit/CKError/Code/badContainer)

An error that occurs when you use an unknown or unauthorized container.

[`CKError.Code.badDatabase`](/documentation/CloudKit/CKError/Code/badDatabase)

An error that occurs when the operation can’t complete for the specified database.

[`CKError.Code.batchRequestFailed`](/documentation/CloudKit/CKError/Code/batchRequestFailed)

An error that occurs when the system rejects the entire batch of changes.

[`CKError.Code.changeTokenExpired`](/documentation/CloudKit/CKError/Code/changeTokenExpired)

An error that occurs when the change token expires.

[`CKError.Code.constraintViolation`](/documentation/CloudKit/CKError/Code/constraintViolation)

An error that occurs when the server rejects the request because of a unique constraint violation.

[`CKError.Code.incompatibleVersion`](/documentation/CloudKit/CKError/Code/incompatibleVersion)

An error that occurs when the current app version is older than the oldest allowed version.

[`CKError.Code.internalError`](/documentation/CloudKit/CKError/Code/internalError)

A nonrecoverable error that CloudKit encounters.

[`CKError.Code.invalidArguments`](/documentation/CloudKit/CKError/Code/invalidArguments)

An error that occurs when the request contains invalid information.

[`CKError.Code.limitExceeded`](/documentation/CloudKit/CKError/Code/limitExceeded)

An error that occurs when a request’s size exceeds the limit.

[`CKError.Code.managedAccountRestricted`](/documentation/CloudKit/CKError/Code/managedAccountRestricted)

An error that occurs when CloudKit rejects a request due to a managed-account restriction.

[`CKError.Code.missingEntitlement`](/documentation/CloudKit/CKError/Code/missingEntitlement)

An error that occurs when the app is missing a required entitlement.

[`CKError.Code.networkFailure`](/documentation/CloudKit/CKError/Code/networkFailure)

An error that occurs when a network is available, but CloudKit is inaccessible.

[`CKError.Code.networkUnavailable`](/documentation/CloudKit/CKError/Code/networkUnavailable)

An error that occurs when the network is unavailable.

[`CKError.Code.notAuthenticated`](/documentation/CloudKit/CKError/Code/notAuthenticated)

An error that occurs when CloudKit cannot authenticate the user.

[`CKError.Code.operationCancelled`](/documentation/CloudKit/CKError/Code/operationCancelled)

An error that occurs when an operation cancels.

[`CKError.Code.partialFailure`](/documentation/CloudKit/CKError/Code/partialFailure)

An error that occurs when an operation completes with partial failures.

[`CKError.Code.participantMayNeedVerification`](/documentation/CloudKit/CKError/Code/participantMayNeedVerification)

An error that occurs when the user isn’t a participant of the share.

[`CKError.Code.permissionFailure`](/documentation/CloudKit/CKError/Code/permissionFailure)

An error that occurs when the user doesn’t have permission to save or fetch data.

[`CKError.Code.quotaExceeded`](/documentation/CloudKit/CKError/Code/quotaExceeded)

An error that occurs when saving a record exceeds the user’s storage quota.

[`CKError.Code.referenceViolation`](/documentation/CloudKit/CKError/Code/referenceViolation)

An error that occurs when CloudKit can’t find the target of a reference.

[`CKError.Code.requestRateLimited`](/documentation/CloudKit/CKError/Code/requestRateLimited)

An error that occurs when CloudKit rate-limits requests.

[`CKError.Code.serverRecordChanged`](/documentation/CloudKit/CKError/Code/serverRecordChanged)

An error that occurs when CloudKit rejects a record because the server’s version is different.

[`CKError.Code.serverRejectedRequest`](/documentation/CloudKit/CKError/Code/serverRejectedRequest)

An error that occurs when CloudKit rejects the request.

[`CKError.Code.serverResponseLost`](/documentation/CloudKit/CKError/Code/serverResponseLost)

An error that occurs when CloudKit is unable to maintain the network connection and provide a response.

[`CKError.Code.serviceUnavailable`](/documentation/CloudKit/CKError/Code/serviceUnavailable)

An error that occurs when CloudKit is unavailable.

[`CKError.Code.tooManyParticipants`](/documentation/CloudKit/CKError/Code/tooManyParticipants)

An error that occurs when a share has too many participants.

[`CKError.Code.unknownItem`](/documentation/CloudKit/CKError/Code/unknownItem)

An error that occurs when the specified record doesn’t exist.

[`CKError.Code.userDeletedZone`](/documentation/CloudKit/CKError/Code/userDeletedZone)

An error that occurs when the user deletes a record zone using the Settings app.

[`CKError.Code.zoneBusy`](/documentation/CloudKit/CKError/Code/zoneBusy)

An error that occurs when the server is too busy to handle the record zone operation.

[`CKError.Code.zoneNotFound`](/documentation/CloudKit/CKError/Code/zoneNotFound)

An error that occurs when the specified record zone doesn’t exist.

[`CKError.Code.resultsTruncated`](/documentation/CloudKit/CKError/Code/resultsTruncated)

An error that occurs when CloudKit truncates a query’s results.



---

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)