From GnuCash
Revision as of 10:13, 11 February 2016 by Jim DeLaHunt (talk | contribs) (Bug: Silently fails on compressed XML file: +my signature)
Jump to: navigation, search

Bug: Silently fails on compressed XML file

When I tried this utility on an XML file saved from GnuCash 2.6, I found that the utility ran forever, and made a steadily larger output file. I interrupted it when it got to 100MB or so, but it would have continued.

The problem appeared to be that my GnuCash XML file was gzip-compressed. I didn't notice this, because my text editor had no problem showing the file. It must be smart enough to remove the gzip compression automatically as it opened the file. However, the command head -1 myfile.xml.gnucash showed that the file was binary.

My workaround was to use gzip -c myfile.xml.gnucash >myfile.xml to remove the gzip compression.

Jim DeLaHunt (talk) 10:13, 11 February 2016 (UTC)

Bug: Doesn't prune all instances of obsolete accounts (doesn't support multiple import-map-bayes sections?)

When I used this utility with an XML file generated by GnuCash 2.6, it seemed to run fine, but did not prune all instances of obsolete accounts.

I didn't diagnose this fully, but I wonder if the utility doesn't support multiple import-map-bayes sections? My GnuCash file certainly did have multiple import-map-bayes sections. Maybe the utility was pruning only from the first one.

Sorry for not nailing this down, but I don't have time to chase this down now. I hope this clue is helpful to others.

Jim DeLaHunt (talk) 10:12, 11 February 2016 (UTC)