TransWikia.com

ledger-cli Error: Incorrect use of thousand-mark period

Personal Finance & Money Asked by Navidot on August 3, 2021

I have a problem with ledger-cli while trying to transfer money between accounts with currency conversion.

I have following record in ledger:

2020/09/04 * Transfer
  Assets:Monzo                               -149.73 GBP
  Assets:Nest                                 738.00 PLN

When I run ledger -f file.ledger reg "Assets:Nest" I get Error: Incorrect use of thousand-mark period. I don’t use --decimal-comma.

Any idea what could cause the problem?

One Answer

I managed to solve the problem, thanks to Martin from Ledger-cli Google mailing group. One of the records in the ledger was corrupted, I used comma instead of dot:

2019/07/31 * Hosting
  Assets:Nest                                 -73,80 GBP
  Assets:Reimbursements                        

The correct form is:

2019/07/31 * Hosting
  Assets:Nest                                 -73.80 GBP
  Assets:Reimbursements                        

Correct answer by Navidot on August 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP