---
title: CKError.Code.alreadyShared
framework: cloudkit
role: symbol
role_heading: Case
path: cloudkit/ckerror/code/alreadyshared
---

# CKError.Code.alreadyShared

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

## Declaration

```swift
case alreadyShared
```

## Discussion

Discussion A record can exist in only a single share at a time. This error means that one of the following conditions exists: The record already has an existing share. The record has a parent, and its parent has a share. The record is a parent, and one of its children has a share.

## See Also

### Error Codes

- [CKError.Code.accountTemporarilyUnavailable](cloudkit/ckerror/code/accounttemporarilyunavailable.md)
- [CKError.Code.assetFileModified](cloudkit/ckerror/code/assetfilemodified.md)
- [CKError.Code.assetFileNotFound](cloudkit/ckerror/code/assetfilenotfound.md)
- [CKError.Code.assetNotAvailable](cloudkit/ckerror/code/assetnotavailable.md)
- [CKError.Code.badContainer](cloudkit/ckerror/code/badcontainer.md)
- [CKError.Code.badDatabase](cloudkit/ckerror/code/baddatabase.md)
- [CKError.Code.batchRequestFailed](cloudkit/ckerror/code/batchrequestfailed.md)
- [CKError.Code.changeTokenExpired](cloudkit/ckerror/code/changetokenexpired.md)
- [CKError.Code.constraintViolation](cloudkit/ckerror/code/constraintviolation.md)
- [CKError.Code.incompatibleVersion](cloudkit/ckerror/code/incompatibleversion.md)
- [CKError.Code.internalError](cloudkit/ckerror/code/internalerror.md)
- [CKError.Code.invalidArguments](cloudkit/ckerror/code/invalidarguments.md)
- [CKError.Code.limitExceeded](cloudkit/ckerror/code/limitexceeded.md)
- [CKError.Code.managedAccountRestricted](cloudkit/ckerror/code/managedaccountrestricted.md)
- [CKError.Code.missingEntitlement](cloudkit/ckerror/code/missingentitlement.md)
