**Source URL:** https://limited.veevavault.dev/mdl/component-types/objectvalidation

# Objectvalidation

**Class:** `metadata`

Validation rules enhance data quality by comparing user-entered data with Admin-defined rules for an object record.

Learn about [Record Validation Rules in Vault Help.](https://platform.veevavault.help/en/lr/46866)

| Attribute | Metadata | Description |
| --- | --- | --- |
| `label` | Type: String **Required** Max length: 40 | UI-friendly string in the Vault’s base language. |
| `active` | Type: Boolean **Required** | Indicates whether the validation is active. |
| `expression` | Type: String **Required** Max length: 3900 | A valid expression. |
| `description` | Type: String Max length: 255 | Describes the details of the validation rule. |
| `error_message` | Type: String **Required** Max length: 255 | Describes the error that displays if the rule fails. |
| `error_location` | Type: String **Required** Max length: 255 Multi-value | Select fields for the error location. |

### Supported Operations

| Operation | Support |
| --- | --- |
| Create | Yes |
| Recreate | Yes |
| Alter | Yes\* |
| Drop | Yes |
| Rename | Yes |
| Describe | Yes |
| Generate Recreate | Yes |
| Queryable | No |

**Notes:**

*   **Alter:** MDL Operation may not be supported for some multi-value attributes.

---

**Previous:** [Objecttype](/mdl/component-types/objecttype)  
**Next:** [Objectworkflow](/mdl/component-types/objectworkflow)