---
title: HMError.Code.nameDoesNotStartWithValidCharacters
framework: homekit
role: symbol
role_heading: Case
path: homekit/hmerror/code/namedoesnotstartwithvalidcharacters
---

# HMError.Code.nameDoesNotStartWithValidCharacters

An attempt to start the name of an object with invalid characters.

## Declaration

```swift
case nameDoesNotStartWithValidCharacters
```

## Discussion

Discussion Names must start with a letter, symbol, or number.

## See Also

### Value errors

- [HMError.Code.invalidDataFormatSpecified](homekit/hmerror/code/invaliddataformatspecified.md)
- [HMError.Code.invalidValueType](homekit/hmerror/code/invalidvaluetype.md)
- [HMError.Code.nameContainsProhibitedCharacters](homekit/hmerror/code/namecontainsprohibitedcharacters.md)
- [HMError.Code.nameDoesNotEndWithValidCharacters](homekit/hmerror/code/namedoesnotendwithvalidcharacters.md)
- [HMError.Code.stringLongerThanMaximum](homekit/hmerror/code/stringlongerthanmaximum.md)
- [HMError.Code.stringShorterThanMinimum](homekit/hmerror/code/stringshorterthanminimum.md)
- [HMError.Code.valueHigherThanMaximum](homekit/hmerror/code/valuehigherthanmaximum.md)
- [HMError.Code.valueLowerThanMinimum](homekit/hmerror/code/valuelowerthanminimum.md)
