{"record":{"id":"2c481e42133578ba","repo":"octobercms/october","slug":"start-and-end-dates-cannot-be-set-if-the-start-tim","errorCode":null,"errorMessage":"Start and end dates cannot be set if the start timestamp is also set.","messagePattern":"Start and end dates cannot be set if the start timestamp is also set\\.","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/dashboard/classes/ReportDataQueryBuilder.php","lineNumber":168,"sourceCode":"    public function __construct(\n        string $tableName,\n        ReportDimension $dimension,\n        array $metrics,\n        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;","sourceCodeStart":150,"sourceCodeEnd":186,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/dashboard/classes/ReportDataQueryBuilder.php#L150-L186","documentation":"Error \"Start and end dates cannot be set if the start timestamp is also set.\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/dashboard/classes/ReportDataQueryBuilder.php:168 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"}