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

# NSPersistentStoreSaveError

Error code to denote that a persistent store returned an error for a save operation.

```
var NSPersistentStoreSaveError: Int { get }
```

## Discussion

This code pertains to errors such as permissions problems.

---

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)