Hi everyone,
I’m getting a database error whenever I try to create a Journal Entry with a very large amount. Even a minimal entry like the example below fails:
- Account A — Debit: 42,640,545,170,577
- Account B — Credit: 42,640,545,170,577
Error message:
pymysql.err.DataError: (1264, “Out of range value for column ‘total_debit’ at row 1”)
This happens both via UI (new Journal Entry) and via Data Import. Smaller amounts save fine
- ERPNext / Frappe versions: 15
Questions:
What is the expected numeric precision/scale for total_debit / total_credit in ERPNext?
Is there a known limit for Journal Entry totals in MariaDB/MySQL that ERPNext enforces?
Any configuration I should check (System Settings → Currency Precision, Global Defaults, or DocType field precision)?