---
title: invalidParameter
framework: gamekit
role: symbol
role_heading: Type Property
path: gamekit/gkerror/invalidparameter
---

# invalidParameter

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

## Declaration

```swift
static var invalidParameter: GKError.Code { get }
```

## 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

### Error Codes

- [GKError.Code](gamekit/gkerror/code.md)
- [authenticationInProgress](gamekit/gkerror/authenticationinprogress.md)
- [cancelled](gamekit/gkerror/cancelled.md)
- [challengeInvalid](gamekit/gkerror/challengeinvalid.md)
- [communicationsFailure](gamekit/gkerror/communicationsfailure.md)
- [gameSessionRequestInvalid](gamekit/gkerror/gamesessionrequestinvalid.md)
- [gameUnrecognized](gamekit/gkerror/gameunrecognized.md)
- [invalidCredentials](gamekit/gkerror/invalidcredentials.md)
- [invalidPlayer](gamekit/gkerror/invalidplayer.md)
- [invitationsDisabled](gamekit/gkerror/invitationsdisabled.md)
- [matchNotConnected](gamekit/gkerror/matchnotconnected.md)
- [matchRequestInvalid](gamekit/gkerror/matchrequestinvalid.md)
- [notAuthenticated](gamekit/gkerror/notauthenticated.md)
- [notSupported](gamekit/gkerror/notsupported.md)
- [parentalControlsBlocked](gamekit/gkerror/parentalcontrolsblocked.md)
