Weird -1/0 exchange rates appear from time to time
sunfish62 at yahoo.com
Wed May 20 12:08:42 EDT 2015
A check of the UAH currency code shows that it is for the Ukrainian Hryvnia. The Wikipedia article for UAH says that it was discontinued in 2014, but exchange sources still list it, so Wikipedia may be mistaken. Those exchange sources indicate that 1 Hryvnia is currently worth .048 USD.
What I think is odd is that Paul says this entry cropped up in the last 30 days, but the price:time value is 2012-05-27.
On May 20, 2015, at 7:10 AM, John Ralls <jralls at ceridwen.us> wrote:
>> On May 20, 2015, at 4:36 AM, Paul Salmon <paul.b.salmon at gmail.com> wrote:
>> I can't figure out what causes this, but these entries find their way
>> into my GnuCash file from time to time. Here's one that appeared
>> within the last 30 days:
>> <price:id type="guid">d8925eb5c06f2bfa4287f7b25b315605</price:id>
>> <ts:date>2012-05-27 00:00:00 +0300</ts:date>
>> Most of the time the ts:date is a recent one, so this one is extra weird.
>> I notice it when my file is processed by a separate tool, which
>> (understandably, IMO) fails when it encounters this exchange rate.
>> Any ideas on how to stop this happening? Using v2.6.5 on Win7.
> -1/0 is an error flag. It’s a bug in GnuCash that it’s being recorded at all, and it should also issue a warning in the GUI when it occurs. If it’s coming from the transfer dialog then it’s from numbers you’ve entered by hand when doing a currency conversion. The date is from the posted date — the one that you enter when creating a transaction — so perhaps you recently edited the exchange rate on an older transaction.
> I think it most likely that the actual error is a divide-by-zero, which might be caused by a USD value less than 1/100. I’ll have to look through the code to be sure. It would be great if you could file a bug so that I don’t forget.
> John Ralls
> gnucash-user mailing list
> gnucash-user at gnucash.org
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
More information about the gnucash-user