PHPOffice/PhpSpreadsheet · error · PhpOffice\PhpSpreadsheet\Exception
Start row ({$startRow}) is beyond highest row ({$this->subje
Error message
Start row ({$startRow}) is beyond highest row ({$this->subject->getHighestRow()}) What it means
Error "Start row ({$startRow}) is beyond highest row ({$this->subject->getHighestRow()})" thrown in PHPOffice/PhpSpreadsheet.
Source
Thrown at src/PhpSpreadsheet/Worksheet/RowIterator.php:63
$this->resetStart($startRow);
}
public function __destruct()
{
unset($this->subject);
}
/**
* (Re)Set the start row and the current row pointer.
*
* @param int $startRow The row number at which to start iterating
*
* @return $this
*/
public function resetStart(int $startRow = 1): static
{
if ($startRow > $this->subject->getHighestRow()) {
throw new PhpSpreadsheetException(
"Start row ({$startRow}) is beyond highest row ({$this->subject->getHighestRow()})"
);
}
$this->startRow = $startRow;
if ($this->endRow < $this->startRow) {
$this->endRow = $this->startRow;
}
$this->seek($startRow);
return $this;
}
/**
* (Re)Set the end row.
*
* @param ?int $endRow The row number at which to stop iterating
*View on GitHub (pinned to 65b080eef4)
When it happens
Trigger: Thrown at src/PhpSpreadsheet/Worksheet/RowIterator.php:63 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of PHPOffice/PhpSpreadsheet@65b080eef4 (2026-08-17).
Data as JSON: /api/errors/a655f898269271a8.
Report an issue: GitHub.