<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderErrorItemKey",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "File Provider"
    ],
    "preciseIdentifier" : "c:@NSFileProviderErrorItemKey"
  },
  "title" : "NSFileProviderErrorItemKey"
}
-->

# NSFileProviderErrorItemKey

The key for accessing information about sync-related errors.

```
let NSFileProviderErrorItemKey: String
```

## Discussion

If a specific item caused the error, the system sets the [`NSFileProviderErrorItemKey`](/documentation/FileProvider/NSFileProviderErrorItemKey) key to the item’s identifier, and it sets the <doc://com.apple.documentation/documentation/Foundation/NSUnderlyingErrorKey> key to the error encountered by the item.

---

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)