# errors.TX_NO_STATE

## NAME

TX_NO_STATE — the transaction coordinator cannot find a state record for the given transaction ID.

## SYNOPSIS

HTTP: `404` `Not Found`. Retryable: `no`.

## DESCRIPTION

The two-phase commit coordinator tracks per-transaction state (prepared, committed, aborted). This error is returned when a commit or abort instruction references a transaction for which no state record exists, because the transaction was never prepared or was already cleaned up.

Not retryable. `prepare` must be called before `commit` or `abort`. The coordinator's state retention configuration determines how long state records are kept.

## SEE ALSO

- errors
- errors.TX_REQUIRED
- errors.TX_COORDINATOR_NOT_CONFIGURED
- errors.TRANSACTION_NOT_FOUND
