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

# Error fixing

> Fix gems errors with one click

Troubleshooting pipeline errors manually can be time-consuming. Prophecy simplifies this process by offering multiple ways to detect and resolve issues quickly. After Copilot makes the fix, Prophecy will always provide a summary of the changes made.

## Inline fix

Click an expression inside a gem with an error and select **Fix it** to apply an automatic correction.

<img src="https://mintcdn.com/prophecy-62973bd0/H0ZTapkqkd-vL9H9/data-analysis/gems/copilot/img/copilot-expression-fix.gif?s=5e1bf1a63a37296ffdb6fa76169c9ab0" alt="Copilot inline fix" width="1920" height="1080" data-path="data-analysis/gems/copilot/img/copilot-expression-fix.gif" />

## Fix on save

If you try to save a gem with detected errors, a **Fix Diagnostics** dialog appears.

* **Save without fixing**: Save the gem without fixing the errors.
* **Fix diagnostics**: Let Copilot fix the errors automatically.

<img src="https://mintcdn.com/prophecy-62973bd0/H0ZTapkqkd-vL9H9/data-analysis/gems/copilot/img/copilot-fix-diagnostics.png?fit=max&auto=format&n=H0ZTapkqkd-vL9H9&q=85&s=c48a63b08f845fbadf6c14400495debb" alt="Copilot fix on save" width="2870" height="1610" data-path="data-analysis/gems/copilot/img/copilot-fix-diagnostics.png" />

## Gem-level fix

On the pipeline canvas, open a gem's action menu and select **Fix** to automatically correct errors within that component.

<img src="https://mintcdn.com/prophecy-62973bd0/H0ZTapkqkd-vL9H9/data-analysis/gems/copilot/img/copilot-fix-gem.png?fit=max&auto=format&n=H0ZTapkqkd-vL9H9&q=85&s=87bb877751efb009c24c59a672b53d75" alt="Copilot fix gem" width="2870" height="1610" data-path="data-analysis/gems/copilot/img/copilot-fix-gem.png" />
