# X_LEDGER_ENTRY_INVALID

## Means

a ledger entry is not a whole-minor Money amount on a named account

## Typical cause

an entry has a fractional or unsafe minor, a currency that is not an ISO 4217 code, a scale differing within one currency, an empty account, or the posting has fewer than two entries

## Fix

`{ account: 'cash', amount: { minor: 1299, currency: 'EUR' } }` — in the enqueue of the ledger job: integer minor units (fromDecimal('12.99', 'EUR') from @ultimat3/money), never a float

[Jobs](/error-codes#jobs)
