On 9/9/25 2:08 PM, Brendan Coupe via KMyMoney-devel wrote:
When I compile either the 5.2 or the master branch I get the following
error when trying to open my file:
Corrupted data: transaction '', split 'S0002' references unknown
account id 'A000432'
/usr/local/src/kmm/kmymoney-2025.09.09-11.47.31-GIT-MASTER/kmymoney/plugins/xml/mymoneyxmlreader.cpp:771
Since my file is encrypted, the first thing I tried was decrypting the
file. I got the same error. When I switch back to the version I
compiled on August 21, the file opens as expected. The first time this
happened was about a week ago but I didn't try decrypting the file
first until today.
Something in the past few weeks seems to have caused this problem.
I think this has been reported by someone else recently, but can't
currently find the reference. It seems to be due to a new check that
has been added recently. What you can do is grep for that account
number in your data file after decrypting and find what transaction
contains that split. Then open that transaction in an older working
version and check if the category is valid. If not, change it to a
valid Category. You may then find a different transaction with the same
problem, so you will need to repeat the process. Apparently at some
point in the past, it was possible to delete a Category without deleting
or reassigning all transations/splits which referred to it.