Help!!! I have years of financial records and I can't access them. What do I do? I have NEVER had a problem with this application in over a decade.
In the following, I use <data-file> as a placeholder for the path to your data file. To investigate the problem, please answer the following questions: 1) what was the last activity before you saved the file last time? 2) what is the length of <data-file>? 3) what is the output of the command "file <data-file>" (w/o the quotes)? 4) do you happen to have files named "<data-file>.#~" where # is one or more digits?
Thank you for your prompt reply. 1) Last activity before saving the file was most likely recording a transaction, completing a reconciliation, or view a report. The original file is on a laptop at home and works fine. So last touch was copying the file to a flash drive. 2) The data file is 440.7kb. 3) Output from File command: "bruce.kmy: gzip compressed data, was "", last modified: Thu Jun 12 12:00:49 2025, from Unix, original size modulo 2^32 7982022" 4) yes. these files are system backups and their data is dated. I have restored from these before. Thanks for your help on this. Bruce On 6/15/25 01:06, Thomas Baumgart wrote: > https://bugs.kde.org/show_bug.cgi?id=505613 > > Thomas Baumgart <tbaumgart@kde.org> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Status|REPORTED |NEEDSINFO > Resolution|--- |WAITINGFORINFO > > --- Comment #1 from Thomas Baumgart <tbaumgart@kde.org> --- > In the following, I use <data-file> as a placeholder for the path to your data > file. To investigate the problem, please answer the following questions: > > 1) what was the last activity before you saved the file last time? > 2) what is the length of <data-file>? > 3) what is the output of the command "file <data-file>" (w/o the quotes)? > 4) do you happen to have files named "<data-file>.#~" where # is one or more > digits? >
If you reply by email, please only include your response and do not include the original message. This makes it easier to read and follow on our bug tracker. Check https://bugs.kde.org/show_bug.cgi?id=505613#c2 how your first response looks like. Thanks. Regarding 4) those are old versions of your data file created by KMyMoney when you save your data afresh. Now to some more activities: first of all make a good backup of your current file and store it in a safe place. Then try the following (the text right to a # is a comment. No need to enter it): 1) mv <data-file> <data-file>.gz # that's dot gz appended 2) gunzip <data-file>.gz # that decompresses and leaves <data-file> but human readable 3) xmllint <data-file> # If xmllint is not installed: for me it is in a package called libxml2-tools Does any of that show any errors? BTW: no need to re-compress <data-file>. KMyMoney can deal with that.
Thank you for the reply. The output of xmllint does show errors: bruce.kmy:2847: parser error : attributes construct error <PAYEE name="Habana Blu""/> ^ bruce.kmy:2847: parser error : Couldn't find end of Start Tag PAYEE line 2847 <PAYEE name="Habana Blu""/> ^ bruce.kmy:2848: parser error : Opening and ending tag mismatch: PAYEES line 203 and PAYEE </PAYEE> ^ bruce.kmy:2849: parser error : attributes construct error <PAYEE name="La Fonda MexicSS postcode="" state="" telephone="" city="" street ^ bruce.kmy:2849: parser error : Couldn't find end of Start Tag PAYEE line 2849 <PAYEE name="La Fonda MexicSS postcode="" state="" telephone="" city="" street ^ bruce.kmy:2850: parser error : Opening and ending tag mismatch: KMYMONEY-FILE line 3 and PAYEE </PAYEE> ^ bruce.kmy:2851: parser error : Extra content at the end of the document <PAYEE name="China Palace" matchingenabled="0" reference="" id="P000824" email
There we go: those errors are the problem. I have no idea how that got into the file because an entry like <PAYEE name="Habana Blu""/> is not written by KMyMoney. It is missing at least the id attribute. You can try to take a look at line 2847 and following and try to fix the XML. xmllint must run without errors before KMyMoney can read the file. Maybe, you can post lines 2847-2851 here but please don't include any private information. If you can't, you might consider sending them via private email to me for further investigation.
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!
I was unable to fully understand how to read and or edit the payee data. I fixed the problem by updating the Ubuntu OS, downloading the newest version of Kmymoney, and opening the last good copy I had and adding the latest transactions. When I searched for the payees listed from the output of xmllint, I found the 3 listed payees are all from 2020 and their names were concatenated in the output from above. For some reason, unknown to me, it all seems to be working now.