Fava validating error but bean-check passes

75 views
Skip to first unread message

Kaida Zhang

unread,
Mar 23, 2023, 12:22:08 AM3/23/23
to Beancount
Hello everyone,

I hope you are all doing well. I am new to Beancount and Fava, and I am excited to learn more about these tools and how they can help me with my accounting.

I have encountered an issue with Fava that I was hoping someone in the group could help me with. When I try to load my Beancount file in Fava, I receive an error message that says "validating object failed". However, when I run the `bean-check journal.beancount` command, it passes without any issues.

I was wondering if anyone has encountered this problem before and if you might have any suggestions on how to resolve it?

Thank you in advance for your help and support.

Kaida

Red S

unread,
Apr 3, 2023, 12:17:05 AM4/3/23
to Beancount
That seems to be related to translations. Grepping for that error in fava shows it originates in frontend/src/lib/validation.ts.

I have no personal experience with that error. You could try to see if it occurs with a different language setting, and if it doesn't, that sounds like a bug.

Hope this helps!

Red S

unread,
Apr 3, 2023, 12:17:22 AM4/3/23
to Beancount
Also: welcome!

Kaida Zhang

unread,
Apr 9, 2023, 7:15:10 PM4/9/23
to Beancount
Thanks Red for the suggestion! I haven't tried switching languages, but adding the following two lines to the top resolved this:

```
option "operating_currency" "USD"

option "inferred_tolerance_default" "USD:0.01"

```


Hope this will also be helpful to others.

Red S

unread,
Apr 9, 2023, 11:00:55 PM4/9/23
to Beancount
Good to know!

Fava displays an error if the operating currency is not set, and my guess is, a translation for that that error message does not exist, which causes it to crash. If your error message is reproducible by removing those option lines, you might consider filing a bug here to help out the Fava folks.
Reply all
Reply to author
Forward
0 new messages