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  > On 1 Feb 2025, at 03:49, John Ralls <jra...@ceridwen.us> wrote: > > Michael, > > There’s a ;Section: Accounts comment possibly followed by a scheme statement, > e.g. from the saved-reports-2.8 attached to bug 799533: >> ; Section: Accounts >> >> (let ((option (gnc:lookup-option options >> "Accounts" >> "Accounts"))) >> ((lambda (o) (if o (gnc:option-set-value o >> '("9607a45d938ca929bf160e4c99bb686c")))) option)) > > The inner list can contain many UUIDs. Some reports have a default filter. > For example the Balance Sheet Report will by default load all Asset, > Liability, and Equity accounts and the Income Statement Report will load all > Expense and Income accounts. In those cases it’s normal to not have an > Accounts option. Other reports, most notably the Transaction Report, have no > default and if there’s no Accounts option will display that error message > about you needing to select some. > > Regards, > John Ralls > >> On Jan 31, 2025, at 14:29, Michael Hendry <hendry.mich...@gmail.com> wrote: >> >> Thanks, John - see interspersed comments below, >> >> Regards, >> >> Michael >> >>> On 31 Jan 2025, at 17:16, John Ralls <jra...@ceridwen.us> wrote: >>> >>> Michael, >>> >>> We had a possibly related bug report yesterday, >>> https://bugs.gnucash.org/show_bug.cgi?id=799533. >> >> Certainly looks similar. >> >>> >>> As for restarting your Mac, heavens no. It’s not running Windows, >>> restarting isn’t likely to do anything useful. >> >> I’ve experienced a number of situations recently where my Mac seized up and >> the only way I found to get out of it was to shut down. >> >>> >>> What would be useful is figuring out how the account entries got removed, >>> in particular if it was operator error or something GnuCash did on its own. >>> Your Time Machine backups of ~/Library/Application >>> Support/Gnucash/saved-reports-2.8 might help narrow down when the change >>> happened and you could correlate that—or not—with what books you changed >>> around then. >> >> I’ve managed to get a couple of copies of saved-reports-2.8 from the past >> few weeks but none of them appears to have entries for Accounts relating to >> the searches I’m having problems with - but I don’t know what I’m looking >> for - are the Account names in free text, or are the accounts identified in >> some other way? >> >>> >>> Regards, >>> John Ralls >>> >>> >>>> On Jan 31, 2025, at 03:35, Michael Hendry <hendry.mich...@gmail.com> wrote: >>>> >>>> Version: 5.9 >>>> Build ID: 5.9+(2024-09-28) >>>> >>>> michaelhendry@iMac ~ % uname -a >>>> Darwin iMac.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:27 >>>> PDT 2024; root:xnu-11215.41.3~2/RELEASE_X86_64 x86_64 >>>> >>>> I’ve been having a recurring problem with variations on this error message: >>>> >>>> GASDS Report for 2024-2025: >>>> >>>> No accounts selected >>>> >>>> This report requires accounts to be selected in the report options. >>>> >>>> Edit report options >>>> >>>> Sorting / Primary Key : memo >>>> General / End Date : absolute . 31/03/2025 >>>> General / Start Date : absolute . 01/04/2024 >>>> General / Report name : GASDS Report for 2024-2025 >>>> Display / Subtotal Table : Enabled >>>> Display / Other Account Name : Disabled >>>> >>>> This particular report isn’t needed until the end of March, but as the >>>> date approaches I use it to report on the amount claimable under the Gift >>>> Aid Small Donations Scheme (GASDS). At first I thought that the problem >>>> might have been related to a forgotten edit to the account structure, but >>>> today I opened the relevant .gnucash file and ran the report - with the >>>> above result. 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. >>>> >>>> Remembering that I had accidentally run this report on a completely >>>> different .gnucash file which doesn’t have the relevant accounts and got >>>> the error report, I thought this might in some way have corrupted the >>>> report configuration, but I’ve tried this again today, quitting GnuCash in >>>> between changes of .gnucash file. >>>> >>>> The short-term fix is simply to add the appropriate accounts back into the >>>> report, and re-save it, but there’s always the risk that I’ll omit a >>>> relevant account. >>>> >>>> I haven’t found any reference to this issue on the list, which is not to >>>> say it hasn’t been raised before, so I’d be grateful for a steer in the >>>> right direction, or advice on further investigation - e.g. would there be >>>> any mileage in restarting my iMac between various stages of the testing >>>> process I tried (above). >>>> >>>> Regards to all, >>>> >>>> Michael >>>> >>>> >>>> _______________________________________________ >>>> gnucash-user mailing list >>>> gnucash-user@gnucash.org >>>> To update your subscription preferences or to unsubscribe: >>>> 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. >>> >> > _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: 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.