# How to Configure Schema Filters

Schema filters are used to exclude parts of the schema from the code generation process.

If filtered, attributes discovered will have a record status of 'inactive' and can be changed back to active at any time. Additionally, the record status for an attribute can be modified in the Pipeline Designer.

{% hint style="warning" %}
You must create a data source *before* you can add Schema Filters.
{% endhint %}

### 1. Enter the name for a new schema filter

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-06-13/0c478b79-466b-4ab7-bef9-3ed8e4440e3c/ascreenshot.jpeg?tl_px=0,223\&br_px=1376,993\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=1\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=344,286)

### 2. Enter the filter RegEx for a new schema filter

This regular expression is used to search the discovered paths so DataPancake can then set the attribute record status to 'inactive'.

{% hint style="info" %}
This can be done *before* or *after* schema discovery. If done after, rescanning is *not* required.
{% endhint %}

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-06-13/e9b28433-9d69-4b9b-b3df-b6449638435d/ascreenshot.jpeg?tl_px=164,223\&br_px=1541,993\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=1\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=637,281)

### 3. Click "Save Schema Filters"

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-06-13/2a383fd8-216c-4768-9598-bf8a4bd90739/ascreenshot.jpeg?tl_px=0,223\&br_px=1376,993\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=1\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=423,485)


---

# 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.datapancake.com/guides/how-to-guides-ui/creating-and-configuring-data-sources/how-to-configure-schema-filters.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.
