{"record":{"id":"36b4e21008bf2ff5","repo":"octobercms/october","slug":"either-the-start-and-end-dates-or-the-start-timest","errorCode":null,"errorMessage":"Either the start and end dates or the start timestamp must be set.","messagePattern":"Either the start and end dates or the start timestamp must be set\\.","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/dashboard/classes/ReportDataQueryBuilder.php","lineNumber":172,"sourceCode":"        ReportDataOrderRule $orderRule,\n        ?array $dimensionFilters,\n        ?int $limit,\n        ?ReportDataPaginationParams $paginationParams,\n        ?string $groupInterval,\n        bool $hideEmptyDimensionValues,\n        ?Carbon $startDate,\n        ?Carbon $endDate,\n        ?int $startTimestamp,\n        ?string $dateColumnName,\n        ?string $timestampColumnName,\n        bool $totalsOnly\n    ) {\n        if (($startDate || $endDate) && $startTimestamp !== null) {\n            throw new ApplicationException('Start and end dates cannot be set if the start timestamp is also set.');\n        }\n\n        if (!$startDate && $startTimestamp === null) {\n            throw new ApplicationException('Either the start and end dates or the start timestamp must be set.');\n        }\n\n        $this->tableName = $tableName;\n        $this->metrics = $metrics;\n        $this->dimension = $dimension;\n        $this->limit = $limit;\n        $this->orderRule = $orderRule;\n        $this->dimensionFilters = $dimensionFilters;\n        $this->groupInterval = $groupInterval;\n        $this->hideEmptyDimensionValues = $hideEmptyDimensionValues;\n        $this->paginationParams = $paginationParams;\n        $this->startDate = $startDate;\n        $this->endDate = $endDate;\n        $this->dateColumnName = $dateColumnName;\n        $this->totalsOnly = $totalsOnly;\n        $this->startTimestamp = $startTimestamp;\n        $this->timestampColumnName = $timestampColumnName;\n    }","sourceCodeStart":154,"sourceCodeEnd":190,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/dashboard/classes/ReportDataQueryBuilder.php#L154-L190","documentation":"Error \"Either the start and end dates or the start timestamp must be set.\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/dashboard/classes/ReportDataQueryBuilder.php:172 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"}