---
title: ancestorRecord
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckerror/ancestorrecord
---

# ancestorRecord

The original version of the record.

## Declaration

```swift
var ancestorRecord: CKRecord? { get }
```

## Discussion

Discussion This property’s value is available only when the error’s code is serverRecordChanged, which indicates the server’s record is newer than the version you try to save. Use this property’s value, along with those of clientRecord and serverRecord, to resolve the conflict. The error’s userInfo dictionary contains the same value as this property. You can access it using the CKRecordChangedErrorAncestorRecordKey key.

## See Also

### Getting Conflicted Records

- [clientRecord](cloudkit/ckerror/clientrecord.md)
- [serverRecord](cloudkit/ckerror/serverrecord.md)
