https://bugs.kde.org/show_bug.cgi?id=411958

--- Comment #12 from Christoph Vogtländer <k...@mockies.de> ---
I was able to track down this issue. The problem is that my bank exports the
field "Konto-Nr." (account number) without actually setting any value (see the
sample CSV file). When importing with LANG=de_DE.UTF-8 the default regular
expression for detecting the account per line is "^Konto" which matches the
exported field at column 4 in the header data.
The bool "noAccountColumn" (skgimportplugincsv.cpp:447) is false in this case
and no default account will be created/selected. When processing the "account"
column, "val" is an empty string and no account will be created/set either (as
"val != defAccount.getName()" in skgimportplugincsv.cpp:618 is true). Setting
the parent account will fail, then. 

Starting skrooge with LANG=C will change the default regular expression to
"^account" which then does not match anything in the CSV. "noAccountColumn" is
true and a default account will be created before the import gets started. The
import succeeds in this case.

IMHO this should be handled more gracefully as it is nearly impossible to
understand the problem from the users perspective. Either the importer should
show a more meaningful error message or, even better, should fall back to the
default account (like when "noAccountColumn" is true) for lines with an empty
"Account" value. I will provide a patch for the latter case.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to