---
title: NSFileProviderErrorItemKey
framework: fileprovider
role: symbol
role_heading: Global Variable
path: fileprovider/nsfileprovidererroritemkey
---

# NSFileProviderErrorItemKey

The key for accessing information about sync-related errors.

## Declaration

```swift
let NSFileProviderErrorItemKey: String
```

## Discussion

Discussion If a specific item caused the error, the system sets the NSFileProviderErrorItemKey key to the item’s identifier, and it sets the NSUnderlyingErrorKey key to the error encountered by the item.

## See Also

### Errors

- [NSFileProviderError](fileprovider/nsfileprovidererror.md)
- [NSFileProviderError.Code](fileprovider/nsfileprovidererror/code.md)
- [NSFileProviderErrorDomain](fileprovider/nsfileprovidererrordomain.md)
- [NSFileProviderErrorNonExistentItemIdentifierKey](fileprovider/nsfileprovidererrornonexistentitemidentifierkey.md)
- [NSFileProviderErrorCollidingItemKey](fileprovider/nsfileprovidererrorcollidingitemkey.md)
