When attempting to open my kmymoney file I received the following error. Cannot load file k:/KMyMoney_2012.kmy. Reason: File was not parsable! The next message is: Cannot open file as requested. Error was: Currency 'USD' not found. Uncaught error. Please report to the developers Details Currency 'USD' not found. in file e:\r\build\extragear\kmymoney-4.6.1-20110918\work\kmymoney-4.7.2\kmymoney\mymoney\mymoneyfile.cpp line 2,596 If this is not recoverable then I will have lost 8 months of data :( The last thing I remember doing was creating a custom report that worked fine. When I tried to open up the file it gave the following errors. If there is a way to fix the data file I will do what I can otherwise I need to rebuild the last 8 months of data.
First, you should upgrade to 4.8.0, which has been available almost a year. Second, do you have any backups? More directly to your problem, a .kmy file is just a gzipped x.xml file. If you make a copy of your file to one called file.xml.gz, you should be able to gunzip it. The resulting xml file is plain text, so you should be able to look at it in a text editor. This will at least confirm that the compression was not the problem. Then we can dig into what is wrong with the file, and whether or not it can be easily repaired. The currency not found issue seems odd, because it implies that KMM was able to read the file, unless perhaps it was truncated, which doesn't seem likely. Post back with the results of checking that the xml file is readable.
I will check this when I get home. Would 7zip be able to unzip the file?
On my Win7 machine, yes, 7zip will open a .gz file.
Created attachment 105998 [details] Unexpected end of file
So it seems the file itself has been damaged or truncated. Figuring out how that happened will not help recover it, but it might point to something in your system which is failing. Have you always just saved the file and then opened it in the same location, or have you copied it anywhere? Is it stored on a local hard drive, or a network shared drive? If local, can you run SMART diagnostics on it? While not likely relevant, have you run a full virus scan and scan for any malware? Can you think of anything which changed on your PC since you last successfully opened/saved the file?
(In reply to Jack from comment #5) > So it seems the file itself has been damaged or truncated. Figuring out how > that happened will not help recover it, but it might point to something in > your system which is failing. > > Have you always just saved the file and then opened it in the same location, > or have you copied it anywhere? Is it stored on a local hard drive, or a > network shared drive? If local, can you run SMART diagnostics on it? While > not likely relevant, have you run a full virus scan and scan for any > malware? > > Can you think of anything which changed on your PC since you last > successfully opened/saved the file? It has been in the same location for 5 years. The only thing I can think of is I just had a blue screen of death - and KMyMoney was open. I hope it wasn't saving at that time. It's stored on a local hard disc drive (4TB) in an encrypted container. It seems to not have any more data as the file is 32 kb and the backup one was 616 kb. I was able to merge the two together and get a file that is 620 kb
This is a file corruption issue, not an issue of the kmymoney application and seems to be solved by restoring a backup file.