{"record":{"id":"1a4bd6ab23b1b7a9","repo":"octobercms/october","slug":"limit-and-pagination-parameters-cannot-be-both-set","errorCode":null,"errorMessage":"Limit and pagination parameters cannot be both set.","messagePattern":"Limit and pagination parameters cannot be both set\\.","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/dashboard/classes/ReportDataQueryBuilder.php","lineNumber":662,"sourceCode":"            );\n        }\n\n        if ($this->metricsConfigurationCallback) {\n            call_user_func($this->metricsConfigurationCallback, $query, $this->dimension, $this->metrics);\n        }\n\n        if ($this->configureQueryCallback) {\n            call_user_func($this->configureQueryCallback, $query, $this->dimension, $this->metrics);\n        }\n\n        $query->addSelect($columns);\n\n        if (!$skipGrouping) {\n            $query->groupBy(Db::raw($this->dimension->getDataSetColumName()));\n        }\n\n        if ($this->limit !== null && $this->paginationParams) {\n            throw new ApplicationException('Limit and pagination parameters cannot be both set.');\n        }\n\n        if ($this->limit) {\n            $query->limit($this->limit);\n        }\n\n        $this->applyFilters($query);\n\n        if ($this->dateColumnName && $this->startDate !== null) {\n            $query->whereBetween($this->dateColumnName, [\n                $this->startDate->startOfDay()->toDateTimeString(),\n                $this->endDate->endOfDay()->toDateTimeString()\n            ]);\n        }\n\n        if ($this->timestampColumnName && $this->startTimestamp !== null) {\n            $query->where($this->timestampColumnName, '>=', Carbon::createFromTimestamp($this->startTimestamp));\n        }","sourceCodeStart":644,"sourceCodeEnd":680,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/dashboard/classes/ReportDataQueryBuilder.php#L644-L680","documentation":"Error \"Limit and pagination parameters cannot be both set.\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/dashboard/classes/ReportDataQueryBuilder.php:662 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"}