# Validate

This document explains how the *Validate* object is used to check whether your dataset meets certain conditions or rules before you use it further in your recipe. Think of it as a way to flag rows that don’t match expectations.

### Example Use Case

Suppose you are working with a customer's table. Some customers don’t provide a fax number, but your business requires it for all active customers. You can configure the *Validate object* to identify these missing values.

<figure><img src="/files/RRm6nEylhHGFcqYnbGRX" alt=""><figcaption></figcaption></figure>

1. In the toolbar, click on *Validate* and select the *Validate* option.

<figure><img src="/files/aA3229X4gfX6T6NXKmoG" alt=""><figcaption></figcaption></figure>

2. This will open the *Recipe Configuration – Validate* panel.&#x20;

<figure><img src="/files/oEuKmo2Ieo2QjoQUyXHO" alt="" width="392"><figcaption></figcaption></figure>

3. In this panel, you’ll configure the following options:

* **Description:** Enter a meaningful name for the rule (e.g., “Missing Fax Validation”).
* **Attach Rule to Field:** Select a field to associate the rule with. For example, the *Fax* column.

<figure><img src="/files/U1vGyd0rAVOqputgM9a4" alt="" width="368"><figcaption></figcaption></figure>

* **Show Message:** Provide a custom error or warning message that appears when a record fails the rule.
* **Severity:** Choose whether a failed rule should be treated as an:
  * **Error:** The record is flagged and goes to the Invalid Output.
  * **Warning:** The record is flagged but still treated as valid
* **Rule Condition**: Enter the expression for your rule by typing it directly or using the Expression Builder <img src="/files/Lp6k6ecPfa9TG3JMQEu4" alt="" data-size="line"> with built-in functions, operators, and fields.

<figure><img src="/files/WXJGGhy5kJy8ixhn0nsH" alt="" width="563"><figcaption></figcaption></figure>

4. Once you’re done, click <img src="/files/MoI3HgBFnNJT7Jgo3HNm" alt="" data-size="line"> *Apply.*

<figure><img src="/files/Zgtp40LIrjLvinrwwHyZ" alt="" width="420"><figcaption></figcaption></figure>

5. In the preview grid, records matching the "Missing Fax Validation" rule are validated. Conversely, records not matching the rule display an error, indicated by a red warning sign.

<figure><img src="/files/WeNtwUD1aNcVllIgrA1q" alt=""><figcaption></figcaption></figure>

6. The records that fail to match the validation rule can be written and stored in a separate error log. Click [here](/dataprep/exporting-data.md#write-to-log-file) to learn how you can store erroneous records to a log file.

<figure><img src="/files/04gghN13czdlJ6bEAyD5" alt=""><figcaption></figcaption></figure>


---

# 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://documentation.astera.com/dataprep/validate.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.
