# ValidationIssue


```
sealed class ValidationIssue
```

<br />

Known direct subclasses [AutomationTooLarge](https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationTooLarge), [BlockedAction](https://developers.home.google.com/reference/kotlin/com/google/home/automation/BlockedAction), [ConditionDurationOutOfRange](https://developers.home.google.com/reference/kotlin/com/google/home/automation/ConditionDurationOutOfRange), [DelayDurationOutOfRange](https://developers.home.google.com/reference/kotlin/com/google/home/automation/DelayDurationOutOfRange), [DuplicateStarterNode](https://developers.home.google.com/reference/kotlin/com/google/home/automation/DuplicateStarterNode), [InvalidArgumentCount](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidArgumentCount), [InvalidArgumentsForOperator](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidArgumentsForOperator), [InvalidCommand](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidCommand), [InvalidConditionType](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidConditionType), [InvalidCustomCameraEventQuery](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidCustomCameraEventQuery), [InvalidDurationExpressionType](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidDurationExpressionType), [InvalidDuration](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidDuration), [InvalidEntityExpressionType](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidEntityExpressionType), [InvalidEntity](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidEntity), [InvalidEvent](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidEvent), [InvalidField](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidField), [InvalidNullParameterValue](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidNullParameterValue), [InvalidOperand](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidOperand), [InvalidParameterType](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidParameterType), [InvalidParameter](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidParameter), [InvalidPersonalActionConfiguration](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidPersonalActionConfiguration), [InvalidReference](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidReference), [InvalidTrait](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidTrait), [InvalidValue](https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidValue), [MisplacedSelectFlow](https://developers.home.google.com/reference/kotlin/com/google/home/automation/MisplacedSelectFlow), [MisplacedStarterNode](https://developers.home.google.com/reference/kotlin/com/google/home/automation/MisplacedStarterNode), [MissingRequiredFields](https://developers.home.google.com/reference/kotlin/com/google/home/automation/MissingRequiredFields), [MissingRequiredParameters](https://developers.home.google.com/reference/kotlin/com/google/home/automation/MissingRequiredParameters), [MissingStarterNode](https://developers.home.google.com/reference/kotlin/com/google/home/automation/MissingStarterNode), [MultipleManualStarters](https://developers.home.google.com/reference/kotlin/com/google/home/automation/MultipleManualStarters), [OutputNotAccessible](https://developers.home.google.com/reference/kotlin/com/google/home/automation/OutputNotAccessible), [OutputReinitialized](https://developers.home.google.com/reference/kotlin/com/google/home/automation/OutputReinitialized), [OutputTypeMismatch](https://developers.home.google.com/reference/kotlin/com/google/home/automation/OutputTypeMismatch), [ReadOnlyAttribute](https://developers.home.google.com/reference/kotlin/com/google/home/automation/ReadOnlyAttribute), [SuppressionDurationOutOfRange](https://developers.home.google.com/reference/kotlin/com/google/home/automation/SuppressionDurationOutOfRange), [TooManyNodes](https://developers.home.google.com/reference/kotlin/com/google/home/automation/TooManyNodes), [TooManyOperations](https://developers.home.google.com/reference/kotlin/com/google/home/automation/TooManyOperations), [UnknownIssue](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnknownIssue), [UnsubscribableAttribute](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsubscribableAttribute), [UnsupportedActionBehavior](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedActionBehavior), [UnsupportedEntityCommand](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityCommand), [UnsupportedEntityEvent](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityEvent), [UnsupportedEntityParameterValue](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityParameterValue), [UnsupportedEntityParameter](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityParameter), [UnsupportedEntityTrait](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityTrait), [UnsupportedEntityType](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityType), [UnsupportedNodeOutput](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedNodeOutput), [UnsupportedOperator](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedOperator), [UnsupportedStarterBehavior](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedStarterBehavior), [UnsupportedStateReaderBehavior](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedStateReaderBehavior), [UnsupportedSubNodeType](https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedSubNodeType)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationTooLarge` | The automation's serialized form is larger than what is allowed by the abuse prevention config for the calling application. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/BlockedAction` | The action could impact the safety, security, or privacy of a household. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ConditionDurationOutOfRange` | The condition duration is outside the accepted range of 5 seconds to 24 hours. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/DelayDurationOutOfRange` | Delay duration is outside the accepted range of 5 seconds to 24 hours. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/DuplicateStarterNode` | The starter is listening to the same trait change or event as existing starter nodes. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidArgumentCount` | The expression has an invalid argument count. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidArgumentsForOperator` | Represents the data type of a value. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidCommand` | The command ID is not found in the command schema. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidConditionType` | The condition type is not valid. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidCustomCameraEventQuery` | The custom camera event query is invalid. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidDurationExpressionType` | The duration expression type is not valid. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidDuration` | The duration is invalid. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidEntityExpressionType` | The entity expression type is not valid. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidEntity` | The Entity (ID or name) does not exist or belong to the user. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidEvent` | The event ID is not found in the event schema. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidField` | The FIELD_SELECT expression uses an invalid field. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidNullParameterValue` | The parameter value must not be null. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidOperand` | The expression uses an invalid operand. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidParameterType` | The parameter type is not valid. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidParameter` | The parameter name is not found in the behavior schema. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidPersonalActionConfiguration` | A personal action cannot be triggered by a communal voice starter. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidReference` | The Reference is not valid. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidTrait` | The trait ID is not found in the trait schema. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/InvalidValue` | The value is invalid. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/MisplacedSelectFlow` | The select flow node must be the first node in an automation. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/MisplacedStarterNode` | The starter node must be the first node in an automation or in a select flow. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/MissingRequiredFields` | Missing required field(s) in the automation graph. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/MissingRequiredParameters` | Required parameters not set. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/MissingStarterNode` | The node cannot be reached without a preceding starter node. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/MultipleManualStarters` | The automation has more than one manual starter node. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/OutputNotAccessible` | An output reference is not accessible. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/OutputReinitialized` | An output variable has been reinitialized in multiple nodes. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/OutputTypeMismatch` | An output variable has been defined in multiple nodes with different types. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ReadOnlyAttribute` | The attribute is not modifiable without a command, by write. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/SuppressionDurationOutOfRange` | The suppression duration is outside the accepted range of 5 seconds to 24 hours. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/TooManyNodes` | The automation has more nodes than allowed by the abuse prevention config for the calling application. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/TooManyOperations` | The expression has more operations than allowed by the abuse prevention config for the calling application. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnknownIssue` | Default validation issue type. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsubscribableAttribute` | The attribute is not subscribable thus cannot be used in a starter. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedActionBehavior` | The entity behavior type is not supported by the action node. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityCommand` | The command is not supported by the entity. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityEvent` | The event is not supported by the entity. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityParameterValue` | The parameter value is not supported by the entity. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityParameter` | The parameter is not supported by the entity. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityTrait` | The trait is not supported by the entity. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedEntityType` | The entity type is not supported by the entity. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedNodeOutput` | This type of node does not produce output. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedOperator` | The expression uses an unsupported operator. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedStarterBehavior` | The entity behavior type is not supported by the starter node. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedStateReaderBehavior` | The entity behavior type is not supported by the state reader node. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/UnsupportedSubNodeType` | The sub-node type is not allowed inside the parent node. |

*** ** * ** ***

The base class for validation issues.

## Summary

| ### Protected constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue#ValidationIssue(com.google.home.automation.Node,com.google.home.automation.ValidationIssueSeverity,com.google.home.automation.ValidationIssueType)( node: https://developers.home.google.com/reference/kotlin/com/google/home/automation/Node, severity: https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssueSeverity, issueType: https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssueType )` Create a `ValidationIssue` instance. |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue#toString()()` |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssueType` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue#issueType()` The type of the validation issue. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Node` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue#node()` The node for which validation is failing. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssueSeverity` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue#severity()` The severity of the validation issue. |

## Protected constructors

### ValidationIssue

```
protected ValidationIssue(
    node: Node,
    severity: ValidationIssueSeverity,
    issueType: ValidationIssueType
)
```

Create a `ValidationIssue` instance.

## Public functions

### toString

```
open fun toString(): String
```

## Public properties

### issueType

```
val issueType: ValidationIssueType
```

The type of the validation issue.

### node

```
val node: Node
```

The node for which validation is failing.

### severity

```
val severity: ValidationIssueSeverity
```

The severity of the validation issue.