[GNC] Saved reports "forget" their target accounts
John Ralls
jralls at ceridwen.us
Sat Feb 1 12:35:29 EST 2025
Michael,
OK, that explains what happened. There should be weekly Time Machine backups between 9 November and 22 December. Is 22 December the first one with empty Account sections? Does the disappearance of the Account sections correspond to any event you can think of, like the first time you used GnuCash 5.10 or opening the saved report in the wrong book that you mentioned in your letter introducing this thread.
There’s one other thing in that letter that I don’t understand:
>
> I closed a few accounts, and I realised that a full report with all the current information had been drawn into view from the right hand side of the screen, coexisting with the above error report.
Was that a left-over from a previous run of the report?
Regards,
John Ralls
> On Jan 31, 2025, at 23:32, Michael Hendry <hendry.michael at gmail.com> wrote:
>
> Thanks, John,
>
> Here are the first few lines from yesterday’s copy of ~/Library/Application Support/Gnucash/saved-reports-2.8
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;; Options for saved report "GASDS Report for 2022-2023", based on template "2fe3b9833af044abb929a88d5a59620f"
> (let ()
> (define (options-gen)
> (let
> (
> (options (gnc:report-template-new-options/report-guid "2fe3b9833af044abb929a88d5a59620f" "Transaction Report"))
> (new-embedded-report-ids '()) ;; only used with Multicolumn View Reports
> )
> ; Section: Accounts
>
>
> ; Section: Currency
>
>
> ; Section: Display
>
> (let ((option (gnc:lookup-option options
> "Display"
> "Other Account Name")))
> ((lambda (o) (if o (gnc:option-set-value o #f))) option))
>
> (let ((option (gnc:lookup-option options
> "Display"
> "Subtotal Table")))
> ((lambda (o) (if o (gnc:option-set-value o #t))) option))
>
> …and the corresponding section from the Time Machine backup from 9th November (before I had this problem) with the
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;; Options for saved report "GASDS Report for 2022-2023", based on template "2fe3b9833af044abb929a88d5a59620f"
> (let ()
> (define (options-gen)
> (let
> (
> (options (gnc:report-template-new-options/report-guid "2fe3b9833af044abb929a88d5a59620f" "Transaction Report"))
> (new-embedded-report-ids '()) ;; only used with Multicolumn View Reports
> )
> ; Section: Accounts
>
> (let ((option (gnc:lookup-option options
> "Accounts"
> "Accounts")))
> ((lambda (o) (if o (gnc:option-set-value o '("001a8f370e0741ba9cdee0e2aaa452c4" "09416821e9444360af2c9d248fca1e30" "e5cef64f8abf4802b6e6c9917dd49d1f")))) option))
>
>
> ; Section: Currency
>
>
> ; Section: Display
>
> (let ((option (gnc:lookup-option options
> "Display"
> "Other Account Name")))
> ((lambda (o) (if o (gnc:option-set-value o #f))) option))
>
> (let ((option (gnc:lookup-option options
> "Display"
> "Subtotal Table")))
> ((lambda (o) (if o (gnc:option-set-value o #t))) option))
>
>
> Attached is a screenshot of a MacVim split-diff comparing the backup from 9th November with that from 22nd December (after this problem first appeared.
>
> I haven’t gone through this with a fine-tooth comb, but the overall impression on scanning through the split-diff screen is that the more recent version (on the left) is missing an Accounts section for all of the reports I’ve created.
>
> Michael
>
> <Screenshot 2025-02-01 at 07.19.29.png>
More information about the gnucash-user
mailing list