{"record":{"id":"47ab2b7b9229dbe9","repo":"PHPOffice/PhpSpreadsheet","slug":"row-row-is-out-of-range-this-startrow-th-47ab2b","errorCode":null,"errorMessage":"Row $row is out of range ({$this->startRow} - {$this->endRow})","messagePattern":"Row \\$row is out of range \\((.+?) - (.+?)\\)","errorType":"exception","errorClass":"PhpOffice\\PhpSpreadsheet\\Exception","httpStatus":null,"severity":"error","filePath":"src/PhpSpreadsheet/Worksheet/RowIterator.php","lineNumber":101,"sourceCode":"     */\n    public function resetEnd(?int $endRow = null): static\n    {\n        $this->endRow = $endRow ?: $this->subject->getHighestRow();\n\n        return $this;\n    }\n\n    /**\n     * Set the row pointer to the selected row.\n     *\n     * @param int $row The row number to set the current pointer at\n     *\n     * @return $this\n     */\n    public function seek(int $row = 1): static\n    {\n        if (($row < $this->startRow) || ($row > $this->endRow)) {\n            throw new PhpSpreadsheetException(\"Row $row is out of range ({$this->startRow} - {$this->endRow})\");\n        }\n        $this->position = $row;\n\n        return $this;\n    }\n\n    /**\n     * Rewind the iterator to the starting row.\n     */\n    public function rewind(): void\n    {\n        $this->position = $this->startRow;\n    }\n\n    /**\n     * Return the current row in this worksheet.\n     */\n    public function current(): Row","sourceCodeStart":83,"sourceCodeEnd":119,"githubUrl":"https://github.com/PHPOffice/PhpSpreadsheet/blob/65b080eef4d9fd11a5796135ab145883e5c3d6a6/src/PhpSpreadsheet/Worksheet/RowIterator.php#L83-L119","documentation":"Error \"Row $row is out of range ({$this->startRow} - {$this->endRow})\" thrown in PHPOffice/PhpSpreadsheet.","triggerScenarios":"Thrown at src/PhpSpreadsheet/Worksheet/RowIterator.php:101 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":"65b080eef4d9fd11a5796135ab145883e5c3d6a6","analyzedAt":"2026-08-17T05:40:41.646Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}