<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSManagedObjectReferentialIntegrityError",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:@Ea@NSManagedObjectValidationError@NSManagedObjectReferentialIntegrityError"
  },
  "title" : "NSManagedObjectReferentialIntegrityError"
}
-->

# NSManagedObjectReferentialIntegrityError

Error code to denote an attempt to fire a fault pointing to an object that does not exist.

```
var NSManagedObjectReferentialIntegrityError: Int { get }
```

## Discussion

The store is accessible, but the object corresponding to the fault cannot be found.

---

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)