[kmymoney] [Bug 428156] OFX import goes to the wrong account

Thomas Baumgart bugzilla_noreply at kde.org
Tue Sep 14 07:34:16 BST 2021


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

--- Comment #15 from Thomas Baumgart <tbaumgart at kde.org> ---
Detailed information regarding the file format and encoding can be found in the
manual at
https://docs.kde.org/stable5/en/kmymoney/kmymoney/details.formats.html.

Seeing two blanks as the StatementKey value is strange. The StatementKey is
used as a second indicator to identify an account. It is set as part of the
statement import when the account number received from the bank differs from
the one KMyMoney knows about. Since we're talking OFX here, this information
comes straight from libOFX. It is strange though to see two blanks here. Let's
see what we can do about it or if there is a bug somewhere down the line.

@Isaac: Please proceed as follows:

- use the settings/general/support dialog to
  a) turn on "Log imported statements"
  b) turn on "Log OFX transactions"

a) will leave a "kmm-statement-<date> <time>.txt" in the 'logpath'
b) will write the communication with the OFX server to the file "ofxlog.txt" in
the 'logpath'

'logpath' can also be set in the above dialog but must exist. The users home
dir is a good choice.

Delete a possibly existing ofxlog.txt file in the logpath so that we have a
fresh copy.

Then run the import process that fails until the end.

Next I am interested in the value of accountid, accountnumber and type found in
the statement file. You can see those with the following command:

  grep version kmm-statement-....

Next I want to know which account number was provided by the bank. You can get
that with the following command

  grep ACCTID ofx-log.txt | od -c -Ax

If you have a tool called hexdump available, please provide the output of the
following command:

  grep ACCTID ofx-log.txt | hexdump -C


Maybe you can repeat the above for a bank account (the one that is working) so
that we can see what the difference is.

Don't forget to turn off logging.

p.s. Taking a look at the screen shot attached, the account number seems empty
(but that could well be two blanks which we can't see).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list