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

# Price change errors

> Why some price changes end up invalid or errored and how to fix the cause per variant.

This warning appears when some price changes ran into an error and no valid new price could be calculated. These entries appear on the [Price changes](/docs/en/guide/price-changes/review) page with the status **Invalid** or **Error**.

## Cause

PricePirate could not determine a valid price for the affected variant. Common reasons are:

* **Missing unit cost or compare-at price** (for some strategies): margin-based strategies such as the [minimum margin](/docs/en/guide/pricing/min-margin) need the **cost per item** from Shopify, and some strategies also need a **compare-at price**. Without these values, the strategy cannot calculate a valid price floor.
* **Other strategy reasons**: the strategy could not derive a valid price from the available data — for example, when a set maximum price is below the calculated margin floor. The row's tooltip names the exact reason.
* **No valid offers**: the product has no usable competitor offers, so the strategy cannot calculate.
* **Internal error**: an unexpected error occurred during the calculation. In this case, contact support.

## Solution

<Steps>
  <Step title="Open the errored entries">
    In the notification, click **Fix problem**. You land on the [Price changes](/docs/en/guide/price-changes/review) page with the entries in the status **Invalid** and **Error**.
  </Step>

  <Step title="Check the row's reason">
    Open the tooltip on the affected row to see the exact reason. For an **Error**, a support button appears instead.
  </Step>

  <Step title="Fix the cause">
    Set the missing **cost per item** in Shopify, or fill in the **Unit cost override** field. If it is caused by a too-low maximum price or other strategy limits, adjust the [strategy](/docs/en/guide/pricing/strategies). For an **Error**, use the button to contact support.
  </Step>

  <Step title="Rerun">
    If the entry is less than 24 hours old and the variant is active, trigger a new calculation with **Rerun**.
  </Step>
</Steps>

## Prevention

[Test a strategy](/docs/en/guide/pricing/test) before you apply it to variants. That way you catch missing cost values or invalid limits before they lead to errored price changes.

## Related topics

* [Review and apply price changes](/docs/en/guide/price-changes/review)
* [Minimum margin](/docs/en/guide/pricing/min-margin)
* [Test a strategy](/docs/en/guide/pricing/test)
