Enumeration Case CKError .Code .reference Violation
An error that is returned when the target of a record's parent or share reference is not found.
iOS 10.0+ macOS 10.12+ Mac Catalyst 13.0+ tvOS 10.0+ watchOS 3.0+ Declaration case referenceViolation = 31
The record has a reference pointing to a record that does not exist on the server. Saving a record validates these references: share, parent, any other reference with a "delete self" action. One potential cause of this error is a situation where you are trying to save a record that contains a parent reference that was previously deleted by another client.
See Also Error Codes case already Shared
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 asset File Modified
An error indicating that the content of the specified asset file was modified while being saved.
case bad Container
An error that is returned when the specified container is unknown or unauthorized.
case bad Database
An error indicating that the operation could not be completed on the given database.
case constraint Violation
An error indicating that the server rejected the request because of a conflict with a unique field.
case network Failure
An error that is returned when the network is available but cannot be accessed.
case not Authenticated
An error indicating that the current user is not authenticated, and no user record was available.
case partial Failure
An error indicating that some items failed, but the operation succeeded overall.
case permission Failure
An error indicating that the user did not have permission to perform the specified save or fetch operation.
case quota Exceeded
An error that is returned when saving the record would exceed the user’s current storage quota.
case server Record Changed
An error indicating that the record was rejected because the version on the server is different.
case too Many Participants
An error indicating that a share cannot be saved because too many participants are attached to the share.
case unknown Item
An error that is returned when the specified record does not exist.
case zone Busy
An error indicating that the server is too busy to handle the zone operation.
case zone Not Found
An error indicating that the specified record zone does not exist on the server.