Hi, all -- I have what I think is a large ledger file, with personal finances dating back to 1988. I'd like to archive the earlier years so that ledger will generate reports more quickly. (I think it's slower than I'd like in part because I've started using automatic transactions recently.)
I used the equity command to archive command to generate balances for all accounts prior to 2010, and printed my working data file so that my regular working file has transactions beginning in 2010. However, when I include the pre-2010 balances in my 2010-and-later data file, ledger generates the following error: --8<---------------cut here---------------start------------->8--- In file included from "scrooge_test", line 3: While parsing file "equity.dat", line 1645: Error: Assertion failed in "src/item.cc", line 535: ledger::string ledger::item_context(const ledger::item_t&, const string&): len < 8192 --8<---------------cut here---------------end--------------->8--- Line 1645 is the last line of equity.dat. It appears that the error only occurs when the archived portion of the data file (in this case, records prior to 2010) includes at least one virtual transaction that is not expected to balance (that is, a virtual transaction indicated by parentheses rather than square brackets). It seems not to matter whether the virtual record is actually in a particular transaction or generated by an automatic transaction. (And virtual entries in the non-archive [in my case, 2010-and-later] file are not a problem.) Has anyone successfully used the equity command to archive balances in data that include virtual transactions? Thanks. -- John Rakestraw
