> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dqlabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Remediation

> How Prizm's Remediation settings configure exception writing, metadata capture, and external Spark compute for remediation workflows.

<script type="application/ld+json">
  {`{
            "@context": "https://schema.org",
            "@type": "TechArticle",
            "headline": "Remediation",
            "description": "How Prizm's Remediation settings configure exception writing, metadata capture, and external Spark compute for remediation workflows.",
            "url": "https://docs.dqlabs.ai/remediation",
            "publisher": {
              "@type": "Organization",
              "name": "DQLabs Inc",
              "logo": "https://media.brand.dev/332adc35-5bc4-4d2b-bf78-256aa4a5e414.svg"
            }
            }`}
</script>

## Overview

The **Remediation** section in Settings configures how Prizm handles exception writing, metadata capture, and compute resources for remediation workflows. It is organized into three sub-sections: Exception, Metadata, and Compute.

Each sub-section has an enable/disable toggle. Settings fields appear only when the toggle is turned on.

Navigate to **Settings → Remediation** to access this section.

***

## Exception

The **Write Exception** toggle enables or disables exception writing for the organization. When enabled, the following configuration fields appear:

| Field                    | Description                                                                                                                                            |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Sources**              | The data sources Prizm writes exceptions for. Defaults to **All** — covers all connected sources. Use **Add Sources** to restrict to specific sources. |
| **Row Limit**            | Optional cap on the number of rows written per exception event. Leave blank for no limit.                                                              |
| **Exception Categories** | The issue categories that trigger exception writes. Defaults to **all** categories.                                                                    |

Click **Save** after making changes.

***

## Metadata

The **Metadata** toggle controls whether Prizm captures and stores metadata during remediation runs. Enable this setting to retain metadata context alongside exception records — useful for auditing and root-cause investigation.

Click **Save** after toggling.

***

## Compute

The **External Spark** toggle enables external Spark compute for remediation workflows. When enabled, the Schema field appears:

| Field        | Description                                                                                                              |
| ------------ | ------------------------------------------------------------------------------------------------------------------------ |
| **Schema**\* | The schema name in your external Spark environment where Prizm writes intermediate results and exception data. Required. |

Click **Save** after entering the schema name.

<Frame>
  <img src="https://mintcdn.com/dqlabs/7h5TPHJ7UPBlK9G8/images/image-82.png?fit=max&auto=format&n=7h5TPHJ7UPBlK9G8&q=85&s=dffd18b214613f4fd2b3df36d3d84c85" alt="Image" width="1424" height="1002" data-path="images/image-82.png" />
</Frame>

<Note>
  The External Spark schema must exist in your Spark environment before configuring it here. Prizm does not create the schema automatically.
</Note>
