# AUR4203

## Error Message

`AUR4203: {{controller}} is not of type ValidationController`

## Description

This error occurs when the validate binding behavior receives an object that is not a proper ValidationController instance. This typically happens when:

1. The validation controller is not properly injected
2. A different object is mistakenly passed as the controller
3. The controller instance is null or undefined

## Common Scenarios

```typescript
// ❌ Problem: Invalid controller type
export class MyComponent {
  controller = {}; // Not a ValidationController
}
```

## Solution

```typescript
// ✅ Correct: Proper validation controller injection
import { ValidationController, ValidationControllerFactory } from '@aurelia/validation-html';

export class MyComponent {
  validationController: ValidationController;
  
  constructor(controllerFactory: ValidationControllerFactory) {
    this.validationController = controllerFactory.createForCurrentScope();
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aurelia.io/developer-guides/error-messages/4200-to-4206/aur4203.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
