> For the complete documentation index, see [llms.txt](https://docs.tonic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tonic.ai/textual/dataset-files/managing-dataset-file-scans.md).

# Managing dataset file scans

To detect entity values, Textual scans the dataset files.

## Automatic scans

Textual automatically runs a scan when you:

* [Add files to a local files dataset](/textual/dataset-files/files-local.md)
* [Change the file selection for a cloud storage dataset](/textual/dataset-files/files-cloud-storage.md)

## Starting a scan manually

{% hint style="info" %}
**Required dataset permission:**

* **To scan all files:** Start a scan of all dataset files
* **To scan a single file:** Start a scan of a dataset file
  {% endhint %}

When you change the dataset configuration, Textual prompts you to run a new scan.&#x20;

For example, a new scan is required when you:

* [Configure added values for entity types](/textual/dataset-configure-redaction/textual-datasets-include-exclude-values.md)
* [Change the available custom entity types](/textual/dataset-configure-redaction/dataset-custom-entity-types.md)

Textual displays an overall prompt to start a new scan, as well as a warning icon next to each affected file.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FMr2hiTcJF2GK3jgiY971%2FDatasetFileRescanPrompts.png?alt=media&amp;token=17e1ce58-ad13-4ede-b071-082fdc165b92" alt=""><figcaption><p>Prompts to run a new scan</p></figcaption></figure>

To start a scan of all of the affected files:

1. Click the **Scan** button in the main prompt.
2. On the confirmation panel, click **Continue**.

To start scan of an individual file, click its refresh icon.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2Fpy9T23pusMtksmrOX8IP%2FDatasetFileRescanIcon.png?alt=media&amp;token=51401328-61c3-43d9-b3b3-8e4b0a479038" alt="" width="91"><figcaption><p>Refresh icon for a dataset file</p></figcaption></figure>

## Tracking the scan status

The file list reflects the current scanning status for the file.

1. A file is initially queued for scanning.
2. When the scan starts, the status changes to scanning.
3. When Textual finishes processing a file, it marks the file as scanned.

As Textual processes each file, it updates the [dataset results](/textual/dataset-configure-redaction/textual-datasets-review-results.md).

## Pausing a scan <a href="#file-process-pause" id="file-process-pause"></a>

If needed, you can pause the scan. To pause the scan, click the pause icon.

The information in the [dataset results](/textual/dataset-configure-redaction/textual-datasets-review-results.md) only reflect the scanned files.

For a cloud storage dataset, when you [generate output](/textual/datasets-preview-output/generating-cloud-storage-output-files.md), Textual only includes files that are scanned.

## Resuming a scan on a paused file <a href="#file-start-scan" id="file-start-scan"></a>

{% hint style="info" %}
**Required dataset permission:** Start a scan of a dataset file
{% endhint %}

After you pause the scan, you can start a scan on individual files.

To start a scan on a file, click the refresh icon for the file.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2Fpy9T23pusMtksmrOX8IP%2FDatasetFileRescanIcon.png?alt=media&amp;token=51401328-61c3-43d9-b3b3-8e4b0a479038" alt="" width="91"><figcaption><p>Refresh icon for a dataset file</p></figcaption></figure>

## Downloading logs for files that fail to process

{% hint style="info" %}
**Required dataset permission:** Start a scan of all dataset files
{% endhint %}

When Textual is unable to process a file, it displays an error for that file.

To download log files for the failed file:

1. Click the options menu for the file.
2. Click **Download Logs**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.tonic.ai/textual/dataset-files/managing-dataset-file-scans.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
