# AUR4106

## Error Message

`AUR4106: The property name needs to be a non-empty string, encountered: {{propertyName}}`

## Description

This error occurs when attempting to hydrate validation rules with invalid property names. Property names must be non-empty strings that correspond to actual properties on the model being validated.

## Common Scenarios

```typescript
// ❌ Wrong: Empty property name
const rules = [{
  property: '',
  rules: [{ name: 'required' }]
}];

// ❌ Wrong: Null/undefined property name
const rules2 = [{
  property: null,
  rules: [{ name: 'required' }]
}];

// ❌ Wrong: Non-string property name
const rules3 = [{
  property: 123,
  rules: [{ name: 'required' }]
}];
```

## Solution

```typescript
// ✅ Correct: Valid property names
const rules = [
  {
    property: 'userName',
    rules: [{ name: 'required' }]
  },
  {
    property: 'email',
    rules: [{ name: 'required' }, { name: 'email' }]
  }
];

validationRules.hydrateRules(rules);
```


---

# 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/4100-to-4106/aur4106.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.
