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

# Reprocessing Statements

> Edit statement metadata, retry processing, and use AI instructions

## Edit Statement Dialog

Open **Edit** from the [statement detail page](/projects/statements/statement-details/overview) to update metadata and add instructions for the AI. The dialog has two tabs: **General** and **Contracts**, plus an **Instructions** section.

### General Tab

The **General** tab contains three sections: Period, Currency, and Tags.

#### Period

Set or correct the period covered by the statement:

| Field      | Description                                                                  |
| ---------- | ---------------------------------------------------------------------------- |
| **Year**   | Accounting year (e.g. 2024)                                                  |
| **Type**   | Monthly (M), Quarterly (Q), Half-yearly (H), or Annual (Y)                   |
| **Number** | For M: 1–12 (January–December). For Q: 1–4. For H: 1–2. Not used for Annual. |

The period is used for reporting and for [currency conversion](/projects/statements/currency) (sales period date).

<Note>
  All three applicable fields (Year, Type, and Number) must be set for the accounting period to be saved. If any field is left on "No change", the period is not updated.
</Note>

### Currency

| Field                    | Description                                   |
| ------------------------ | --------------------------------------------- |
| **Transaction Currency** | Currency of the underlying sales transactions |
| **Royalty Currency**     | Currency you are paid in                      |

If the system did not detect currencies during processing, set them here and then use **Retry** so amounts are interpreted and converted correctly.

#### Tags

Add or remove tags on the statement directly from the Edit dialog.

* The **Tags** selector shows all tags that exist for statements in this project.
* Click a tag to add it; click again (or use the remove control) to remove it.
* Type in the search box to filter existing tags or create a new one — if no match is found, a **Create** option appears.
* To delete a tag entirely from the project, use the delete control next to the tag in the dropdown.

<Note>
  Deleting a tag removes it from all statements in the project, not just this one. Removing a tag from a statement only unlinks it.
</Note>

### Instructions

The **Custom instructions** field is a free-text area that is passed to the extraction/automap process when you run **Retry**. Use it to guide the LLM when the statement has an unusual layout or naming.

**Examples:**

* "The first column in the PDF is always the track title, not the ISRC."
* "Ignore the first two header rows on every page."
* "Map the column labeled 'Net Amount' to Licensor Revenue."
* "This statement has two revenue tables; the second one starts on page 4."

Instructions are stored with the statement and used on every subsequent retry. The field opens blank regardless of any existing instructions — type new content to replace or add instructions. If you leave the field empty and save, the existing instructions remain unchanged.

## Best Practices for Instructions

<AccordionGroup>
  <Accordion title="Use for unusual layouts">
    PDFs and spreadsheets with non-standard structure (e.g. merged cells, multiple tables, inconsistent headers) benefit from short, concrete instructions.
  </Accordion>

  <Accordion title="Be specific">
    Refer to exact column names, row positions, or page numbers when possible (e.g. "Column D is royalty amount" rather than "one of the columns has the amount").
  </Accordion>

  <Accordion title="One concern per instruction">
    Split complex guidance into separate sentences so the model can apply each rule clearly.
  </Accordion>

  <Accordion title="Retry after editing">
    After saving Edit (period, currency, or instructions), use **Retry** so the statement is reprocessed with the new settings. Instructions are only used during processing.
  </Accordion>
</AccordionGroup>

## Retry Processing

**Retry** (in the statement header actions) reruns the automap/extraction process for this statement. Use it when:

* You have updated accounting period, currency, or instructions in Edit and want to re-extract with the new metadata
* A previous run failed or produced low confidence and you want to try again
* You fixed the source file and re-uploaded (or you want to re-run without re-uploading)

The retry uses the statement’s current settings, including any text in **Instructions**. Processing status will move to Queued then Processing; when it finishes, the Contents and other tabs will reflect the new extraction.

## View Mappings

**View Mappings** opens a view of how columns in the uploaded file were mapped to statement fields (e.g. which column became “Licensor Revenue”, “Track Title”, etc.). Use it to:

* Understand why a value ended up in a given field
* Debug extraction when totals or line items look wrong
* Decide what to put in **Instructions** for the next Retry

View Mappings is read-only; to change mappings, add **Instructions** and run **Retry**.

## Related Documentation

<CardGroup cols={2}>
  <Card title="Statement Details" icon="file-contract" href="/projects/statements/statement-details/overview">
    Tabs and all header actions.
  </Card>

  <Card title="Upload" icon="upload" href="/projects/statements/files/upload">
    Processing pipeline and statuses.
  </Card>
</CardGroup>
