---
title: GKError.Code.invalidParameter
framework: gamekit
role: symbol
role_heading: Case
path: gamekit/gkerror/code/invalidparameter
---

# GKError.Code.invalidParameter

The system can’t complete the requested operation because one or more parameters are invalid.

## Declaration

```swift
case invalidParameter
```

## Discussion

Discussion For example, this error code may be returned if your application attempts to post a score and provides a category string that does not match a category you configured for your leaderboards in App Store Connect.

## See Also

### Communication Errors

- [GKError.Code.unknown](gamekit/gkerror/code/unknown.md)
- [GKError.Code.cancelled](gamekit/gkerror/code/cancelled.md)
- [GKError.Code.communicationsFailure](gamekit/gkerror/code/communicationsfailure.md)
- [GKError.Code.invalidPlayer](gamekit/gkerror/code/invalidplayer.md)
- [GKError.Code.gameSessionRequestInvalid](gamekit/gkerror/code/gamesessionrequestinvalid.md)
- [GKError.Code.apiNotAvailable](gamekit/gkerror/code/apinotavailable.md)
- [GKError.Code.connectionTimeout](gamekit/gkerror/code/connectiontimeout.md)
- [GKError.Code.apiObsolete](gamekit/gkerror/code/apiobsolete.md)
