GNOME Bugzilla – Bug 372262
export account hierarchy produces no file on Gnucash 2.0.2 [Debian Sid 2.0.2-2]
Last modified: 2018-06-29 21:15:22 UTC
Please describe the problem: File > Export > Export account hierarchy does not produce a file on Gnucash 2.0.2-2 [Debian Sid]. It works well with 2.0.1 [Edgy]. Lack of this feature is not good if you start a new set of accounts each year. Does this fault have anything to do with this upstream Bug#332802?: http://lists.gnucash.org/pipermail/gnucash-changes/2006-February/002580.html Steps to reproduce: 1. File > Export > Export account hierarchy 2. 3. Actual results: nothing Expected results: make an empty account hierarchy file Does this happen every time? yes Other information: Does this fault have anything to do with this upstream Bug#332802?: http://lists.gnucash.org/pipermail/gnucash-changes/2006-February/002580.html
(In reply to comment #0) > Please describe the problem: > File > Export > Export account hierarchy does not produce a file on Gnucash > 2.0.2-2 [Debian Sid]. It works well with 2.0.1 [Edgy]. Lack of this feature is > not good if you start a new set of accounts each year. > > Does this fault have anything to do with this upstream Bug#332802?: > http://lists.gnucash.org/pipermail/gnucash-changes/2006-February/002580.html > > Steps to reproduce: > 1. File > Export > Export account hierarchy > 2. > 3. > > > Actual results: > nothing > > Expected results: > make an empty account hierarchy file > > Does this happen every time? > yes > > Other information: > > Does this fault have anything to do with this upstream Bug#332802?: > http://lists.gnucash.org/pipermail/gnucash-changes/2006-February/002580.html > I'm seeing the same issue with 2.0.2 compiled from source on Mac OS X 10.4.8 (PPC).
This is the changeset on old bug Bug#332802: http://svn.gnucash.org/trac/changeset/13417
Here is another report of the same bug: https://lists.gnucash.org/pipermail/gnucash-user/2006-October/017899.html
Another confirmation: GnuCash 2.0.2 built from r14936 on 2006-12-20, installed via MacPorts on MacBook with OS X 10.4.8. Export accounts reports no problem but produces no output file.
I see the same problem on gnucash-2.0.2-1 (Fedora Core 6). Exporting worked as expected on gnucash-2.0.1-6.
Here's a workaround: Create an empty file and choose that to export into, works for me on 2.0.2 from Debian. Here's the relevant Debian bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=397510
The same problem occurs on 2.0.4 (r15298) on Debian sarge. The proposed workaround (create an empty file an export to it) worked indeed.
This is because the QOF export doesn't use O_CREAT, judging by strace. Also reported as https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=221149.
Strike that, it's something else.
Actually, it just seems that we run qof_session_begin, which sees the file doesn't exist, and therefore nulls it out in the session. Hence, the export fails.
(In reply to comment #4) > Another confirmation: GnuCash 2.0.2 built from r14936 on 2006-12-20, installed > via MacPorts on MacBook with OS X 10.4.8. Export accounts reports no problem > but produces no output file. > Export works fine in 2.0.4 provided I create the export file first (with touch the/new/file for example). If I don't create the file before I use export account, the program issues no error message, but doesn't create the file.
Confirmed; 2.0.x and trunk/ both exhibit. As Lewis mentions, `touch`ing the file first is a workaround.
Fixed trunk@15496. Marked for backport, should be in 2.0.5, as well. We now create the qof session for the export with the option to create files enabled.
Backported to 2.0 in r15505. Fix will be in 2.0.5
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=372262. Please update any external references or bookmarks.