---
title: CSIndexError.Code.invalidItemError
framework: Core Spotlight
role: symbol
role_heading: Case
platforms: [iOS 9.0+, iPadOS 9.0+, Mac Catalyst 13.1+, macOS 10.11+, visionOS 1.0+]
path: corespotlight/csindexerror/code/invaliditemerror
---

# CSIndexError.Code.invalidItemError

The searchable item object is invalid.

## Declaration

```swift
case invalidItemError
```

## Discussion

Discussion Verify the information in your CSSearchableItem object is correct.

## See Also

### Getting the indexing error codes

- [CSIndexError.Code.indexUnavailableError](corespotlight/csindexerror/code/indexunavailableerror.md)
- [CSIndexError.Code.indexingUnsupported](corespotlight/csindexerror/code/indexingunsupported.md)
- [CSIndexError.Code.invalidClientStateError](corespotlight/csindexerror/code/invalidclientstateerror.md)
- [CSIndexError.Code.mismatchedClientState](corespotlight/csindexerror/code/mismatchedclientstate.md)
- [CSIndexError.Code.quotaExceeded](corespotlight/csindexerror/code/quotaexceeded.md)
- [CSIndexError.Code.remoteConnectionError](corespotlight/csindexerror/code/remoteconnectionerror.md)
- [CSIndexError.Code.unknownError](corespotlight/csindexerror/code/unknownerror.md)
