After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 372262 - export account hierarchy produces no file on Gnucash 2.0.2 [Debian Sid 2.0.2-2]
export account hierarchy produces no file on Gnucash 2.0.2 [Debian Sid 2.0.2-2]
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: General
2.0.x
Other All
: Normal normal
: ---
Assigned To: Chris Lyttle
Chris Lyttle
Depends on:
Blocks: 347575
 
 
Reported: 2006-11-07 23:42 UTC by Bryan Cebuliak
Modified: 2018-06-29 21:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bryan Cebuliak 2006-11-07 23:42:40 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
Comment 1 Doug Latornell 2006-11-14 13:09:18 UTC
(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).
Comment 2 Bryan Cebuliak 2006-11-14 19:21:48 UTC
This is the changeset on old bug Bug#332802:
http://svn.gnucash.org/trac/changeset/13417
Comment 3 Bryan Cebuliak 2006-12-14 00:41:39 UTC
Here is another report of the  same bug:
https://lists.gnucash.org/pipermail/gnucash-user/2006-October/017899.html
Comment 4 Lewis 2006-12-22 19:45:14 UTC
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.
Comment 5 Evan McNabb 2006-12-29 20:21:48 UTC
I see the same problem on gnucash-2.0.2-1 (Fedora Core 6). Exporting worked as expected on gnucash-2.0.1-6.
Comment 6 Thomas Themel 2006-12-30 16:22:54 UTC
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
Comment 7 biloti 2007-01-04 12:27:05 UTC
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.
Comment 8 Bill Nottingham 2007-01-09 04:54:37 UTC
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.
Comment 9 Bill Nottingham 2007-01-09 04:59:46 UTC
Strike that, it's something else.
Comment 10 Bill Nottingham 2007-01-09 05:04:10 UTC
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.
Comment 11 Lewis 2007-01-10 22:43:05 UTC
(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.
Comment 12 Josh Sled 2007-02-04 14:14:40 UTC
Confirmed; 2.0.x and trunk/ both exhibit.  As Lewis mentions, `touch`ing the file first is a workaround.
Comment 13 Josh Sled 2007-02-04 15:05:38 UTC
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.
Comment 14 Derek Atkins 2007-02-04 21:47:44 UTC
Backported to 2.0 in r15505.
Fix will be in 2.0.5
Comment 15 John Ralls 2018-06-29 21:15:22 UTC
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.