Although it's not ultimately an answer to why the code is blowing up, the simplest solution to my problem was found in the report's settings. Under the Sorting
tab, the report was set to sort on Contribution Status
. This is what caused the blow up. If I set it to sort on another column, like Contact Name
, the report runs fine.
So now I have another, hopefully much simpler, problem: I cannot resave the report with the new sort setting. Really? You can't change the options in a report definition and then save them? I looked in the (apparently old) docs, which show clearly an Update Report
button, which no longer exists. I also found this, which presumably was correct at the time, but didn't remain in the UI long. I don't have a Save
item under my Actions menu. This is, at best, terrible UX. Can someone enlighten me? Or is the answer implicit in the above comment: reports are write-only, and if you need to make a change, you redo it from scratch?