Invalid formula grouping context
Detection
- String:
Invalid custom summary formula definition: You must select a grouping context to use any report summary function
Resolution
You need to update your Report definition. See workaround here -> https://salesforce.stackexchange.com/questions/294850/grouping-error-with-prevgroupval-function