error

Thomas Baumgart thb at net-bembel.de
Mon Oct 10 11:17:36 UTC 2016


Hi,

not sure if Patrick got the first message, as he is not subscribed to the 
list. So I simply reply to it and take him in CC.

On Monday 10 October 2016 11:04:19 aga wrote:

> On 10/10/16 04:14, Patrick Oehler wrote:
> > I have encountered this error and was instructed to report it to the
> > development team. I hope you can help me open the file. At this point,
> > the file will not open.
> > 
> > Currency 'USD' not found. in file
> > e:\r\build\extragear\kmymoney-4.6.1-20110918\work\kmymoney-4.6.4\kmymoney
> > \mymoney\mymoneyfile.cpp line 2,421

OK, so there must be a reference in your file to USD but the entry for it is 
not found. The good part: it can be reconstructed. The bad part: is it the 
only piece of information missing or is there more? Please see below how to 
find out.

> > Patrick Oehler
> > 
> > 
> > Sent from Mail for Windows 10
> 
> I fear that your file is corrupted, and it may not be possible to
> recover it, but there are a few suggestions:-
> 
> 1) Noticing that your file name includes a date (?), suggests that you
> have other files.  If this is the case, are you able to open any other file?
> 2) Revision 4.6.4 is quite old now and many bugs have been fixed and
> improvements made in later releases. The most recent stable release is
> 4.8.0, although I don't know if this is available for Windows.
> Otherwise, possibly 4.7.2 would be a better product.
> 3) Please report this on https://bugs.kde.org/ so that any progress may
> be followed more easily.
> 
> It might be possible for one of the developers to look at your file, to
> see if there is any possibility of recovery.

Try to do the following:

a) make a backup of your file if you don't have it already. When we say 
backup, we mean it.
b) Follow https://docs.kde.org/stable4/en/extragear-office/kmymoney/details.formats.compressed.html to convert your data file into 
a human readable format.
c) Open this (XML) file in the editor of your choice.
d) Look for a section called <CURRENCIES> and check that it contains entries 
of the form <CURRENCY> .... Here's how this starts in my file

 <CURRENCIES count="181">
  <CURRENCY saf="100" symbol="ADF" type="3" id="ADF" name="Andorran Franc" 
ppu="100" scf="100"/>
  <CURRENCY saf="100" symbol="ADP" type="3" id="ADP" name="Andorran Peseta" 
ppu="100" scf="100"/>

and many more to follow. You need the following entry to solve your problem:

  <CURRENCY saf="100" symbol="$" type="3" id="USD" name="US Dollar" ppu="100" 
scf="100"/>

I assume you don't have such an entry. If you have the above sections and if 
the USD entry is missing, add it to your list (copy from above), save the file 
and try to open it.

If all this does not help, get back to us. We might have more 
questions/suggestions. Please respond to the list and not to single persons. 
And remember: step a) is important. Would be cool, if this already solves your 
problem.

One thing I am interested in is how you ended up there. You should not be able 
to delete an object that is still referenced elsewhere in the file. But maybe 
that was a problem of 4.6.4 and we already fixed it. So upgrading to a newer 
version is also a good idea.


-- 

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
Unix is the most user friendly system I know, the point is
that it is really selective about who is indeed its friend.
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 225 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20161010/9124b47b/attachment.sig>


More information about the KMyMoney-devel mailing list