--- alias: user-guide-material-defects-repair description: "Repairing a material defect involves selecting a repair action and potentially a replacement material" --- # Mark Material Defect as Repair :lock: MaterialDefect.**Repair** ## Overview This operation is used to repair a specific **Material Defect**. !!! info For more information, see [[user-guide-material-defects-index]] and [[user-guide-manage-repair-policy]]. ## Setup No special setup is required other than to meet the preconditions of the transaction. ## Preconditions * The **Material** exists and it is Active. * The **Material** must have open defects (Open Defect Count must be higher than zero). * The **Product** Repair Policy can affect the possibility of repairing the **Material**. !!! note By default, repair operations can be executed directly from the Open state. To introduce an additional validation step, you can enable the Confirmed state, which requires defects to be confirmed before a repair can be performed, while all other defect-handling actions remain available from the Open state. This behavior is controlled by the `/Cmf/System/Configuration/MaterialTracking/Defects/ConfirmationRequired` system configuration entry (defaults to `false`). ## Sequence of Steps 1. Open the **Material** and navigate to the **Defects** view. 2. Select a **Material Defect** from the **Defects** panel on the left side of the screen. 3. Select the **Repair** button on the top ribbon. 4. Select a **Repair Action** from the available list of actions associated to the **Reason**. Each one has a specific setting for Part Replacement Mode with specific settings: * Allowed - a replacement **Material** can be selected. * Not Allowed - a replacement **Material** cannot be selected. * Required - a replacement **Material** must be selected. 5. Optionally, select a replacement **Material**. This allows the selection of a **Loss Reason** and **Loss Quantity** entry. 6. Verify the information and enter a Closing Remark if needed. 7. Select the **Repair** button to complete the operation. ![Screenshot showing a command-line interface with two lines of output, "a | a" and "Ba".](../images/MD_image9.png)