"ValueError: Invalid account name:" when transaction is in an include file

22 views
Skip to first unread message

timoth...@gmail.com

unread,
Sep 16, 2019, 4:23:07 PM9/16/19
to Beancount
Hi!

My beancount file is now about 15000 lines long, so i thought it would be good to organize the data in several files.
So tonight i tried to create an include file:

include lifeinsurrance.beancount

In this file , i have this transaction:
;; -*- mode: beancount -*-
**** /myData/A_Importer/2006-12-05-Versement Libre.json

2006-12-05 * "Versement Libre Generali" ""
source: "jsongenerali"
Actif:Linxea:AVTim1:FR0010434019 0.1351 FR0010434019 {739.67 EUR, 2007-01-05}
Actif:Linxea:AVTim1:QS0002005476 0.1737 QS0002005476 {575.59 EUR, 2007-01-16}
Actif:Linxea:AVTim1:FR0007062567 0.2961 FR0007062567 {337.63 EUR, 2007-01-05}
Actif:Linxea:AVTim1:LFPMULTIMMO 0.5547 LFPMULTIMMO {180.26 EUR, 2007-01-12}
Actif:Linxea:AVTim1:FR0010546929 4.5310 FR0010546929 {22.07 EUR, 2007-01-05}
Actif:Boursorama:CCTim -500.00 EUR

and I have the following error:

/myData/lifeinsurrance.beancount 6 ValueError: Invalid account name: Actif:Linxea:AVTim1:FR0010434019
/myData/lifeinsurrance.beancount 7 ValueError: Invalid account name: Actif:Linxea:AVTim1:QS0002005476
/myData/lifeinsurrance.beancount 8 ValueError: Invalid account name: Actif:Linxea:AVTim1:FR0007062567
/myData/lifeinsurrance.beancount 9 ValueError: Invalid account name: Actif:Linxea:AVTim1:LFPMULTIMMO
/myData/lifeinsurrance.beancount 10 ValueError: Invalid account name: Actif:Linxea:AVTim1:FR0010546929
/myData/lifeinsurrance.beancount 11 ValueError: Invalid account name: Actif:Boursorama:CCTim

If a put the same transaction directly in my main beancount file and remove the include directive,I don't have the invalid account name error.
Just a balance error:
/myData/Famille.beancount 10555 Transaction does not balance: (-0.128965 EUR), which is i guess related to the cumulated rounding error of the bank statement. I have to work on it to find a solution.

Jason Chu

unread,
Sep 16, 2019, 4:40:36 PM9/16/19
to Beancount
This is a known bug in beancount: options aren't inherited by included files.


--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/0a305f32-5fc6-4b09-8521-fe906716ca21%40googlegroups.com.

timoth...@gmail.com

unread,
Sep 16, 2019, 5:18:53 PM9/16/19
to Beancount
Great ! After copying all the options to the new file, it works.
Reply all
Reply to author
Forward
0 new messages