Enumeration Case

CKError.Code.limitExceeded

An error that is returned when a request to the server is too large.

Declaration

case limitExceeded = 27

Discussion

The server can change its limits at any time, but the following are general guidelines:

  • 400 items (records or shares) per operation

  • 2 MB per request (not counting asset sizes)

If your app receives CKError.Code.limitExceeded, it must split the operation in half and try both requests again.

See Also

Error Codes

case alreadyShared

An error indicating that a record or share cannot be saved because doing so would cause the same hierarchy of records to exist in multiple shares.

case assetFileModified

An error indicating that the content of the specified asset file was modified while being saved.

case assetFileNotFound

An error that is returned when the specified asset file is not found.

case badContainer

An error that is returned when the specified container is unknown or unauthorized.

case badDatabase

An error indicating that the operation could not be completed on the given database.

case batchRequestFailed

An error indicating that the entire batch was rejected.

case changeTokenExpired

An error indicating that the previous server change token is too old.

case constraintViolation

An error indicating that the server rejected the request because of a conflict with a unique field.

case incompatibleVersion

An error indicating that your app version is older than the oldest version allowed.

case internalError

A nonrecoverable error encountered by CloudKit.

case invalidArguments

An error that is returned when the specified request contains bad information.

case managedAccountRestricted

An error that is returned when a request is rejected due to a managed-account restriction.

case missingEntitlement

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

case networkFailure

An error that is returned when the network is available but cannot be accessed.

case networkUnavailable

An error that is returned when the network is not available.

case notAuthenticated

An error indicating that the current user is not authenticated, and no user record was available.

case operationCancelled

An error indicating that an operation was explicitly canceled.

case partialFailure

An error indicating that some items failed, but the operation succeeded overall.

case participantMayNeedVerification

An error that is returned when the user is not a member of the share.

case permissionFailure

An error indicating that the user did not have permission to perform the specified save or fetch operation.

case quotaExceeded

An error that is returned when saving the record would exceed the user’s current storage quota.

case referenceViolation

An error that is returned when the target of a record's parent or share reference is not found.

case requestRateLimited

Transfers to and from the server are being rate limited for the client at this time.

case resultsTruncated

An error indicating that the query results were truncated by the server.

Deprecated
case serverRecordChanged

An error indicating that the record was rejected because the version on the server is different.

case serverRejectedRequest

An error indicating that the server rejected the request.

case serviceUnavailable

An error that is returned when the CloudKit service is unavailable.

case tooManyParticipants

An error indicating that a share cannot be saved because too many participants are attached to the share.

case unknownItem

An error that is returned when the specified record does not exist.

case userDeletedZone

An error indicating that the user has deleted this zone from the settings UI.

case zoneBusy

An error indicating that the server is too busy to handle the zone operation.

case zoneNotFound

An error indicating that the specified record zone does not exist on the server.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software