# Using Data Quality Mode

In addition to standard logging functionality, Astera provides a special data quality mode which is useful for advanced profiling or debugging. When a dataflow is used in data quality mode, most objects on the dataflow show the *Messages* node with output ports. An example of an object with the *Messages* node is shown below:

![](/files/rD0n1CKc3LOv1G08ledO)

Connecting the *Messages* node’s outputs to another object’s input ports on the dataflow makes it possible to get both summary and record-level statistics for the object’s record set, which is useful for analysis or debugging.

The *Messages* node captures the following statistical data:

* TotalCount
* ErrorCount
* WarningCount
* InfoCount
* MessagesText

The metrics listed above aggregate data for the entire record set.

In addition, *FirstItem, LastItem,* and *Items* sub-nodes provide a way to collect quality control data on a record-by-record basis. The quality control data, such as *ElementName, MessageType,* or *Action*, can be written into a dedicated destination object for record-keeping purposes.

To turn on data quality mode, click the ![](/files/lI4tEIE3sY1c9lBqrxMR)icon a second time turns data quality mode off.

## **Usage**

An example of a dataflow using data quality mode is shown below. Notice that all dataflow objects have Messages node enabled.

![](/files/DA91ditvmMfjZJ4fOtBi)


---

# 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/astera-data-stack-v6/dataflows/data-logging-and-profiling/using-data-quality-mode.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.
