Advanced portfolio doing weird things after upgrade to 2.0.5
Derek Atkins
warlord at MIT.EDU
Mon Apr 9 10:42:18 EDT 2007
"Stephen J. Gowdy" <gowdy at slac.stanford.edu> writes:
> [I replied to this thread earlier today saying I had seem similar problems
> and suggesting it was including other parts of the same transaction that
> it shouldn't, but replied from another email address so the post is held
> for approval]
>
> I tried Check & Repair and it didn't help Advanced Portfolio's wierd
> numbers.
I wasn't expecting it to help the weird numbers. I was expecting
(hoping?) that it would prevent the crash that's below.
> When trying the other price options "nearest in time" was the default.
> "most recent" didn't help. "most recent to report" just gave me;
>
> "Report error
> An error occurred while running the report."
And what's printed on the controlling terminal from where you started
"gnucash &" ?
> I use 2.0.5 on RHEL5. Check & Repair didn't make any changes.
-derek
> On Mon, 9 Apr 2007, Derek Atkins wrote:
>
>> Hmm...
>>
>> If you run Check & Repair, does it fix this problem?
>>
>> -derek
>>
>> Oliver Iberien <odilist at sonic.net> writes:
>>
>>> On Sunday 08 April 2007 12:24, Bob Thibodeau wrote:
>>>> Check the report properties for the source of the prices.
>>>> On the basic portfolio, you can choose from three options,
>>>> which generate different numbers. I don't have it on this computer,
>>>> or I'd list them for you. Something like weighted average, nearest
>>>> in time, and another.
>>>>
>>>> Bob T
>>>
>>> Thanks you -- the "most recent to report" option generates the following
>>> errors:
>>>
>>> gnucash: [W] "gnc:case-exchange-fn: bad price-source
>>> value: "pricedb-latest-before
>>> In /usr/local/share/gnome/gnucash/guile-modules/gnucash/main.scm:
>>> 162: 6* [lazy-catch #t #<procedure #f ()> #<procedure dumper (key . args)>]
>>> In unknown file:
>>> ?: 7* [#<procedure #f ()>]
>>> In /usr/local/share/gnome/gnucash/guile-modules/gnucash/main.scm:
>>> 163: 8* [apply #<procedure #f ()> ()]
>>> In unknown file:
>>> ?: 9 [#<procedure #f ()>]
>>> In /usr/local/share/gnome/gnucash/scm/report.scm:
>>> ...
>>> 444: 10 (set! html (gnc:report-render-html report #t))
>>> 444: 11* [gnc:report-render-html # #t]
>>> 409: 12 (if (and (not #) (gnc:report-ctext report)) (gnc:report-ctext
>>> report) ...)
>>> 417: 13 (let ((template #) (doc #f)) (set! doc (if template # #f)) doc)
>>> 420: 14* (set! doc (if template (let* # # # ...) #f))
>>> 420: 15* (if template (let* # # # ...) #f)
>>> 421: 16 (let* (# # # ...) (gnc:html-document-set-style-sheet! doc
>>> stylesheet) ...)
>>> 423: 17* [advanced-portfolio-renderer #]
>>> In /usr/local/share/gnome/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:
>>> 179: 18 (let (# # #) (letrec # # #))
>>> ...
>>> 552: 19 (let (# # # ...) (gnc:html-document-set-title! document #) ...)
>>> 592: 20* (if (not (null? accounts)) (let* (# # # ...) (if show-symbol
>>> #) ...) ...)
>>> 594: 21 (let* (# # # # ...) (if show-symbol #) (if show-listing #) ...)
>>> 648: 22* [table-add-stock-rows # # # ...]
>>> 288: 23 (let ((share-print-info #)) (letrec (#) (set! work-to-do #) ...))
>>> ...
>>> 295: 24 (let* (# # # # ...) (for-each # #) (set! use-txn #) ...)
>>> 323: 25* (exchange-fn (gnc:make-gnc-monetary commodity units) currency)
>>> /usr/local/share/gnome/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:323:25:
>>> In expression (exchange-fn (gnc:make-gnc-monetary commodity units) currency):
>>> /usr/local/share/gnome/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:323:25:
>>> Wrong type to apply: #<unspecified>
>>>
>>> Would anyone know what this means, or if it's relevant?
>>>
>>> I found a reference to something very similar happening on a Windows port of
>>> GnuCash. Perhaps this is a porting issue? From the GnuCash wiki-changes feed:
>>>
>>> - === Advanced Portfolio Report Problems? ===
>>> - I've been testing the binary distribution for windows and everything
>>> seems fine except for the Advanced Portfolio report. I'm not sure if this is
>>> a GNUCash 2.x problem or a Windows problem. Shares, price, and value are all
>>> computed correctly, but all the other columns are quite large and incorrect
>>> (orders of magnitude off).
>>>
>>> [... some error messages I don't have...]
>>>
>>> - Has anyone else seen this issue? I copied my accounts file from 1.8.11
>>> and opened it in 2.0.99 if that makes a difference. Thanks! --[[User:Scbash|
>>> Scbash]] 09:44, 24 March 2007 (EDT)
>>>
>>> Thanks,
>>>
>>> Oliver
>>> _______________________________________________
>>> gnucash-user mailing list
>>> gnucash-user at gnucash.org
>>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>>> -----
>>> Please remember to CC this list on all your replies.
>>> You can do this by using Reply-To-List or Reply-All.
>>>
>>>
>>
>>
>
> --
> /------------------------------------+-------------------------\
> |Stephen J. Gowdy, SLAC | CERN Office: 32-2-A22|
> |http://www.slac.stanford.edu/~gowdy/ | CH-1211 Geneva 23 |
> |http://calendar.yahoo.com/gowdy | Switzerland |
> |EMail: gowdy at slac.stanford.edu | Tel: +41 22 767 5840 |
> \------------------------------------+-------------------------/
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
>
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-user
mailing list