**Source URL:** https://general.veevavault.dev/medical/mdl/component-types/objectvalidation.md

# Objectvalidation

**Class: ** `metadata`

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

Learn about <a href="https://platform.veevavault.help/en/lr/46866" target="_blank">Record Validation Rules in Vault Help.</a>

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

### Supported Operations {#supported-operations}

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

<ul style="padding-left:1.5em;margin-top:0.5rem"><li>**Alter:** <span>MDL Operation may not be supported for some multi-value attributes.</span></li></ul>


---

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