Registered Member
|
Hi all,
I'm using KMyMoney 5.0.0. I'm trying to delete a transaction (which I imported via qif File) but get the following error and the application crashes: Unable to delete transaction(s): Node was not TRANSACTION, thrown in /build/kmymoney-8Tb1zm/kmymoney-5.0.1/kmymoney/mymoney/mymoneytransaction.cpp:53 The error is reproducable by trying to delete one particular transaction. I can delete other transactions without any issue. Can anyone help? Best regards, Patrick |
KDE Developer
|
That is very strange and you are the first one reporting it. Can you try to duplicate the problem using an anonymized version of the file? See the online manual for more information how to create such a file. If there are any questions, please let us know. Send the file to kmymoney-devel@kde.org
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
Hi ipwizard,
thank you for your reply. Unfortunately, I cannot save an anonym file. I get another Error there: Unable to write changes to '<path_to_file>.anon.xml' Any idea? Best regards, Patrick |
KDE Developer
|
OK, can you upgrade to a newer version? The latest stable version is 5.0.7 and the problem (at least writing the anon file) should be fixed in the meantime. Don't know about your initial problem. We will see.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
I'm on ubuntu 18.04 LTS and there I can't find kmymoney 5.0.7
What is the easiest way to upgrade to the latest version without getting a lot of dependency issues? Many thanks for your help! Patrick |
KDE Developer
|
You can try to use the AppImage version.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
Hey ipwizard,
many thanks for your help. I now used the AppImage (Version 5.0.7-de6d242) and cannot open my file. I get the following error: File was not parsable! /home/appimage/workspace/KMyMoney_Stable_Appimage_Build/kmymoney/kmymoney/plugins/xml/mymoneystoragexml.cpp:1396 "Exception while creating a TRANSACTION element: Node was not TRANSACTION /home/appimage/workspace/KMyMoney_Stable_Appimage_Build/kmymoney/kmymoney/plugins/xml/mymoneystoragexml.cpp:532" Does this say anything to you? Cheers, Patrick |
KDE Developer
|
Patrick, yes it does. Your file seems to be corrupted. Howto fix it? Kind of hard to say without knowing details. OK, let's give it a try nevertheless. I suggest you read all of this before you start.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
Hey ipwizard,
wow, cool, I can open the XML file Didn't know that it is just gzipped, I thought it is a proprietary binary format. I can see two potential issues: - <TRANSACTIONS count=11546> but when counting the <TRANSACTION ...> tags, I get 11565. Do I need to change the count to 11565? - Within the <PAIR> tag, I can find TRANSACTION as a text in the value attribute. Could this be an issue? Many many thanks for your support! Cheers, Patrick |
KDE Developer
|
Regarding the supported file formats see the manual or maybe a translated version ;) My favorite is the GPG version.
No need to update the count. KMyMoney will take care of it. Given the number, it might be a bit tricky to find the culprit. The ones in the PAIR element seem to be matched transactions. They don't hurt. Another spot where the cause of the error message could be is in the <SCHEDULES ...> section. The schedules also contain a transaction. Anything at the level of a transaction that does not look like one? Here's a small script that extracts the structural information and hides all private information for further tests:
Save that script into a file called e.g. kmm-struct.pl and make it executable with chmod +x kmm-struct.pl. Then run ./kmm-struct.pl < ipwizard.kmy > ipwizard.txt where ipwizard.kmy is the gunzipped version. Scan ipwizard.txt visually and see if you can spot a node that should be a TRANSACTION but is not.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
Hi ipwizard,
thanks for the script. I was looking closer into the xml but didn't find the issue. Then I started trial and error (I removed the scheduled transactions first, then transactions of particular months etc). Now I found the transaction which causes the KMymoney crash The issue is the value in kmm-matched-tx. Funnily enough, I have this tag only 7 times in all of my transactions but have much more matched transactions. The value looks like this:
Do you have any clue what is wrong in here? Best regards and merry x-mas Patrick |
KDE Developer
|
Oh, this is weird. The problem is in the text
Guess I have to come up with a testcase for this escaping/unescaping one. Merry Christmas in direction of the Alps too.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
Many thanks ipwizard, I'm so happy that I can now continue to do my bookings (even if that's not my favorite work).
Btw: The transaction which caused the issue was imported. Would you like me to try to reproduce it? All the best! Patrick |
KDE Developer
|
If you can do that it would be great. I am interested in the import log. You can turn that on using Settings/Configure KMyMoney/General/Support. The kmm-statement-<date><time>.txt file is what you are looking for. Replace anything private in that file but leave that character untouched in the memo attribute. Thanks for your support.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
KDE Developer
|
I opened a bug report for this and work on a fix
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered users: Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar