Surprise, I figured it out!
Look closely at the last line in the formula. I display a couple values from the array to have something declared in the formula, and also for debugging purposes. I was using the variable “yy” as a subscript for the two arrays to show what was in them when done. But “yy” was being set only when the If statement was satisfied, otherwise it was 0.
Turns out the data I have coming in assured due to my selection criteria that the If statement would always be satisfied. It worked fine in Crystal Reports and displayed the values properly.
But BOE must be fussy when it interprets the running of the formula and kicks out the error.
So, I changed the last line to just say “done” and that cleared it up. Phew!
As to GroupName, that was also causing an issue which prevented things from adding up in the array properly, once I got the above fixed. The GroupName, while returning the MM/YYYY for my dates, was stripping the leading zero on months 1 - 9. So I had to modify it in the front of the formula to put it into a stringvar and then check its length. If it was 6, tack a "0" in front! Sheesh.
Thanks, again.
Brad