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 796081 - Tax Schedule Report - An error occurred while running the report
Tax Schedule Report - An error occurred while running the report
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Reports
3.1
Other Windows
: Normal normal
: future
Assigned To: gnucash-reports-maint
gnucash-reports-maint
Depends on:
Blocks:
 
 
Reported: 2018-05-13 20:02 UTC by Robert Chapin
Modified: 2018-06-30 00:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Robert Chapin 2018-05-13 20:02:04 UTC
I can see the default Tax Schedule Report, but if I change the options to run From "Start of previous year" and To "End of previous year" it just gives me the generic report error message.
Comment 1 Robert Chapin 2018-05-13 20:07:01 UTC
More specifically, the error seems related to an account that I've marked as "Sched D: Short/Long gain or loss" and a specific transaction in that account.  If I remove that account from tax options, or if I narrow the date range to exclude that one transaction, then I get no errors.

Any idea why one transaction would break the whole report?
Comment 2 Robert Chapin 2018-05-13 20:13:17 UTC
Testing further back in time, I am finding that ANY transaction in any Capital Gains account is causing this error.  So now it doesn't look like any one thing I am doing specifically, but a problem with the capital gains component of this report.
Comment 3 John Ralls 2018-05-13 20:23:58 UTC
I can reproduce this on MacOS. The Guile stack trace from gnucash.trace is:
* 13:17:53  WARN <gnc.scm> In ice-9/boot-9.scm:
2401: 19 [save-module-excursion #<procedure 10f0db810 at ice-9/eval-string.scm:65:9 ()>]
In ice-9/eval-string.scm:
  44: 18 [read-and-eval #<input: string 11313b9c0> #:lang ...]
  37: 17 [lp (gnc:report-run 0)]
In report.scm:
 816: 16 [gnc:report-run 0]
In c-interface.scm:
  70: 15 [gnc:backtrace-if-exception #<procedure 10f0dfd80 at report.scm:817:5 ()>]
  22: 14 [gnc:call-with-error-handling #<procedure 10f0dfd80 at report.scm:817:5 ()> ...]
In ice-9/boot-9.scm:
 157: 13 [catch #t #<procedure 10f0dfd50 at c-interface.scm:23:8 ()> ...]
In c-interface.scm:
  27: 12 [#<procedure 10f0dfd50 at c-interface.scm:23:8 ()>]
In report.scm:
 820: 11 [#<procedure 10f0dfd80 at report.scm:817:5 ()>]
 791: 10 [gnc:report-render-html # #t]
In taxtxf.scm:
3268: 9 [generate-tax-schedule "Taxable Income/Deductible Expenses" ...]
In srfi/srfi-1.scm:
 576: 8 [map #<procedure 10f513760 at taxtxf.scm:3268:22 (form-line-acct)> (# #)]
In taxtxf.scm:
2896: 7 [handle-tax-code (# # # # ...)]
2304: 6 [handle-account # # #t ...]
1342: 5 [process-account-transaction-detail # # # ...]
In srfi/srfi-1.scm:
 578: 4 [map #<procedure 10fcdaa50 at taxtxf.scm:1342:13 (split)> (# # # # ...)]
In taxtxf.scm:
1449: 3 [#<procedure 10fcdaa50 at taxtxf.scm:1342:13 (split)> #]
 887: 2 [process-transaction-multi-transfer-detail # # # ...]
In srfi/srfi-1.scm:
 578: 1 [map #<procedure 11313b5b0 at taxtxf.scm:887:13 (tran-split)> (# # # #)]
In taxtxf.scm:
 976: 0 [#<procedure 11313b5b0 at taxtxf.scm:887:13 (tran-split)> #]

ERROR: In procedure car: Wrong type argument in position 1 (expecting pair): 1504177140
Comment 4 Chris 2018-05-14 01:51:06 UTC
I believe this was missed out during TP->T64... try changing the "(car trans-date)" in line 976 to "trans-date" and I think it should fix it.
Comment 5 John Ralls 2018-05-15 21:46:22 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.
Comment 6 John Ralls 2018-06-30 00:09:58 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=796081. Please update any external references or bookmarks.