Aggregate model does not have grouping field in data (9.5.17)

  • 1
  • Problem
  • Updated 1 year ago
  • Solved
Just updated an aggregate model, and the grouping field is no longer showing up in the model's data during runtime.

Setup:


Runtime:


As you can see, the data is grouped, but the grouping field is not in the data. What's up with that?

I've changed the name of the grouping field. I've removed it and added it back. Nothing seems to make a difference.

Help?

I'm running 9.5.17. Was previously working on 9.5.16, I cloned the working page and made some changes, and today the cloned page wasn't working on 9.5.16. I upgraded to .17, but that didn't help.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 1 year ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Hmm...

It looks like the original page is working, so something about the clone got messed up?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
I believe I found the problem.

When there is a condition on the same field as the grouping field, the grouping field fails to appear in the model's data array.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
So, when I have a condition Status__c != 'Rescheduled' along with simple grouping on Status__c, the alias for the Status__c field doesn't show up in the model's data as in the OP.

If I remove that condition, it works as expected.