GNOME Bugzilla – Bug 165719
log replay loses currency info
Last modified: 2018-06-29 20:49:33 UTC
Please describe the problem: I had to replay a log to recover two transactions. Once done, the two transactions lacked currency information. This caused gnucash to print: Warning: xaccTransFindOldCommonCurr...(): unable to find a common currency, and that is strange. Warning: xaccTransScrubCurrency: no common transaction currency found several times on the console. In examining the XML data file, I found that these transactions lacked a <trn:currency> tag. After adding it manually and ensuring that the value (quantity?) tags were correct, the problem was fixed. Steps to reproduce: 1. entered two transactions (number is probably not important). They contained multiple splits (also probably not important). 2. I had to revert to the previous saved data file by moving the current data file and using the File->Open menu choice on starting gnucash, and replay the logs using the File->Import->replay menu choice 3. Now, whenever gnucash is opened, it prints the above warnings, until I fixed the XML data file manually. Actual results: See above problem description Expected results: One expects that the currency would be recorded properly when replaying the log. Does this happen every time? I haven't tried it again, since I don't want to play around with my data too much. Other information:
I can confirm I was hit by the same bug. The number of transactions is indeed irrelevant, as in my case there were around 15 transactions.
I ran into this too when I used the replay log function for the first time. In my case too, the main account xml did not contain <trn:currency> elements for the replayed transactions. Since the transaction log does not appear to contain the currency identifier, I suppose the currency would have to be derived from the currency types of the involved accounts. Or, the transaction log could be changed to include the transaction currency identifier. For now at least, this minor problem has a fairly straightforward workaround.
Log replay related bugs: bug#143720 and bug#150514 and bug#165719 and bug#173056
*** This bug has been marked as a duplicate of 143720 ***
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=165719. Please update any external references or bookmarks.