---
title: invalidParameter
framework: homekit
role: symbol
role_heading: Type Property
path: homekit/hmerror/invalidparameter
---

# invalidParameter

An error indicating the object is invalid for the given operation.

## Declaration

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

## Discussion

Discussion For example, the home object issues an error when attempting to add a room that exists in another home.

## See Also

### Detecting parameter errors

- [missingParameter](homekit/hmerror/missingparameter.md)
- [nilParameter](homekit/hmerror/nilparameter.md)
- [unconfiguredParameter](homekit/hmerror/unconfiguredparameter.md)
