Error in "Trades" view after adding column "Profit/Loss (MA)" and "Entry Value (MA)"

Screenshot of the error message is as follows:

I looked through the errors and they all seem to be occurring with securities with more than just “Buy” and “Sell”. e.g., a security with dividend transactions (after the buy and before the sale), would give this error, but a security with just buy and sell transactions, do not give this error.

For example, this is a security that gives the error - just 1 dividend transaction:

After this error message, the securities with the error would simply return blank for those column:

I also tried the “Sanity Check” option which didn’t seem to help.

Thank you for your assistance in looking into this.

Could you please also share the error log (in the menu in the help context menu)

All it showed was:
"!SESSION 2025-05-15 21:22:28.986 -----------------------------------------------
eclipse.buildId=0.76.2.
java.version=21.0.5
java.vendor=Azul Systems, Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64

!ENTRY name.abuchen.portfolio.model.ClientFactory 1 0 2025-05-15 21:22:38.738
!MESSAGE Loaded 2_Portfolio_2023 (Binary).portfolio with [BINARY, COMPRESSED]"

Nothing seems to have been logged when that error showed up.

1 Like

I can reproduce, error trace from Eclipse :

java.lang.IllegalArgumentException: Unable to add transaction '16 sept. 2023 FEES              CAD     10,00 telus <no XEntry>' to account 'null' (uuid 36da9a71-189c-47b1-b828-1fc97426a3f9): EUR <> CAD
	at name.abuchen.portfolio.model.Account.addTransaction(Account.java:142)
	at name.abuchen.portfolio.snapshot.filter.ReadOnlyAccount.internalAddTransaction(ReadOnlyAccount.java:39)
	at name.abuchen.portfolio.snapshot.filter.ClientTransactionFilter.filter(ClientTransactionFilter.java:73)
	at name.abuchen.portfolio.snapshot.trades.Trade.lambda$12(Trade.java:129)
	at name.abuchen.portfolio.snapshot.security.LazySecurityPerformanceRecord$LazyValue.get(LazySecurityPerformanceRecord.java:47)
	at name.abuchen.portfolio.snapshot.trades.Trade.getProfitLossMovingAverage(Trade.java:258)

The method creates an internal client with internal account, and by default an internal account currency is EUR, so there is mismatch when adding account related transaction in non EUR (CAD) currency such as dividend, fees on security, taxes on security etc.

6 Likes

Thanks.

So this is a programming that needs to be fixed in the next update I assume? i.e., it’s not an user error?