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

# Fix rejected events

> See what a transform accepted and rejected, and fix the mapping for a rejected event

A transform rejects an event it can't turn into a priced row, such as one missing
a mapped field or matching no price. The transform's **Recent events** tab shows
what it accepted and rejected over the last 7 days, so you can find the cause and
fix the mapping.

## Read recent events

On the transform, click **Recent events**. The tab appears after you save the
transform.

* **Accepted** counts the events recorded in the last 7 days.
* **Rejected** counts the events refused in the last 7 days.
* The table lists the 20 most recent rejections with the **Error** and when the
  event was **Received**.

## Fix a rejected event

**1. Load the event**

In the rejections table, click **Load into sample** on the event. The
transform opens the **Mapping** tab with that event as the sample payload.

**2. Find the cause**

Read the error under each column in **FOCUS 1.2 columns**, and the status
banner on the transform. A pricing error points you to the **Cost** tab.

**3. Fix the mapping**

Change the mapping or cost until **Resulting row** shows the row you expect.
The banner reports how many recent rejected events still fail with your
changes.

**4. Save**

Click **Save transform**.

The fix applies to usage received after the save. Events rejected before it
aren't recorded, so send them again if your source can.

## Common errors

| Error | Fix |
| - | - |
| `Event time is missing` | Set **Event time** on the **Mapping** tab to the field that holds the time. |
| `PricingQuantity is not mapped, needs a number` | Map `PricingQuantity` to the numeric usage field. |
| `Got text "...", needs a number` | Map the column to a field that holds a number. |
| `No price matches ...` | Correct the price fields on the **Cost** tab, or set **Price if nothing matches**. |
| `Matches N prices. Set ... to pick one.` | Set the field the error names on the **Cost** tab. |
| `Send delta metrics; add the cumulativetodelta processor to your collector pipeline` | Add `cumulativetodelta` to the Collector pipeline, or send delta temporality from your app. |
| `Summaries are not usage: ...` | Send a sum or a histogram for the metric instead. |
| `Histogram buckets are not usage: ...` | Keep the histogram's `_count` or `_sum` series in `write_relabel_configs`. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.