{"record":{"id":"3061d3b06cfdf9fe","repo":"octobercms/october","slug":"invalid-group-interval-groupinterval","errorCode":null,"errorMessage":"Invalid group interval: {$groupInterval}","messagePattern":"Invalid group interval: (.+?)","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/dashboard/classes/ReportDataSourceBase.php","lineNumber":271,"sourceCode":"\n    /**\n     * Validates the specified group interval.\n     * @param string $groupInterval Specifies the group interval.\n     * @param ReportDimension $dimension Specifies the dimension to group the data by.\n     * @return ?string Returns the validated group interval.\n     */\n    private function validateDateGroupInterval(?string $groupInterval, ReportDimension $dimension): ?string\n    {\n        if (!$groupInterval && $dimension->isDate()) {\n            $groupInterval = self::GROUP_INTERVAL_DAY;\n        }\n\n        if ($groupInterval && !$dimension->isDate()) {\n            return null;\n        }\n\n        if ($groupInterval && !in_array($groupInterval, $this->knownGroupIntervals)) {\n            throw new ApplicationException(\"Invalid group interval: {$groupInterval}\");\n        }\n\n        return $groupInterval;\n    }\n\n    /**\n     * assertValidOrderRule\n     */\n    private function assertValidOrderRule(?ReportDataOrderRule $orderRule, ReportDimension $dimension)\n    {\n        if ($orderRule && $orderRule->getDataAttributeType() === ReportDataOrderRule::ATTR_TYPE_DIMENSION_FIELD) {\n            $dimensionField = $dimension->findDimensionFieldByCode($orderRule->getAttributeName());\n            if (!$dimensionField->getIsSortable()) {\n                $fieldCode = $dimensionField->getCode();\n                throw new ApplicationException(\"Dimension field {$fieldCode} is not sortable.\");\n            }\n        }\n    }","sourceCodeStart":253,"sourceCodeEnd":289,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/dashboard/classes/ReportDataSourceBase.php#L253-L289","documentation":"Error \"Invalid group interval: {$groupInterval}\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/dashboard/classes/ReportDataSourceBase.php:271 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}