Registered Member
|
This morning I encountered this error again; the error message is "File was not parsable! ./kmymoney/plugins/xml/mymoneystoragexml.cpp:1402"
On previous occasions, I have reverted to a backup which has then worked. On this occasion, I can open the backup ok... however, when I close it then try to re-open it... I get the parsing error!! This has happened on several backups. I am using Desktop: MATE 1.26.0 Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy ( I have another PC using the same Linux Mint and KMM version, this is currently working ok.) Any suggestions on next steps please |
KDE Developer
|
Not sure if this helps, but at least worth a trial. Please take a look at the posts in this thread. You can convert your file into xml with the following command (replace xxx below with your filename):
then run the check
and see if that reports problems or not.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
Thanks for the reponse, here's the output:-
|
Registered Member
|
I recognise some of the names in that error string ( eg continente supermarket); i opened another backup and was able to open it, I found that those names appear in the Memo associated with a split transaction on a closed credit card. I have deleted the comments but the file still exhibits the parsing problem when I try to reopen the KMY. Neither the kmy or xml files will open. If I re-run the above code on the KMY file, it now gives a "gzip:- unexpected end of file " error. |
Registered Member
|
I have tried reading the suggested thread; however, it's mostly above my technical knowledge.. although I do see mention of rogue characters in the memo field.
Are there any suggested next steps please? |
Registered Member
|
Update... upon re-checking there was a rogue space in the transaction comment which I had overlooked and not deleted.... the file now opens ok. Question:-that comment had been there for several years: why did it only now cause a problem? |
KDE Developer
|
I think this problem raised when we changed the way the KMyMoney data is converted to XML before writing to storage. We did this because the order of attributes inside an XML element was different with each save operation. This prevented us to spot changes between these two versions easily.
More on that can be found in the following discussion which happened almost 2 years ago. AFAIR, the original problem stems from importing these rogue characters through online statement import and not removing/converting them before using them in XML so that they do not cause the problem you encountered when reading the file because it would then be invalid XML.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered Member
|
Thank you for your response and ongoing support. I've had a look at the suggested link; unfortunately, I do not understand that level of coding. However, it mentions something like " rogue characters from imported data may cause the parsing issue". In my case, I do not import any data and, in my most recent parsing error, the offending text had been there for many years. Are there any additional steps which a user can do to prevent future parsing errors? Thanks again. |
KDE Developer
|
The current code should take care of that so no user intervention is needed.
ipwizard, proud to be a member of the KMyMoney forum since its beginning.
openSuSE Leap 15.4 64bit, KF5 |
Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]