filamentphp/filament · error · LogicException
The total count of selected records [{$resolvedSelectedRecor
Error message
The total count of selected records [{$resolvedSelectedRecords->count()}] must not exceed the maximum selectable records limit [{$maxSelectableRecords}]. What it means
Error "The total count of selected records [{$resolvedSelectedRecords->count()}] must not exceed the maximum selectable records limit [{$maxSelectableRecords}]." thrown in filamentphp/filament.
Source
Thrown at packages/tables/src/Concerns/HasBulkActions.php:264
'keys' => $this->selectedTableRecords,
'records' => $this->selectedTableRecords,
'deselectedKeys' => $this->deselectedTableRecords,
'deselectedRecords' => $this->deselectedTableRecords,
'isTrackingDeselectedKeys' => $this->isTrackingDeselectedTableRecords,
'isTrackingDeselectedRecords' => $this->isTrackingDeselectedTableRecords,
]) :
($this->isTrackingDeselectedTableRecords ? $this->getTableRecords()->except($this->deselectedTableRecords) : $this->getTableRecords()->only($this->selectedTableRecords));
if ($table->checksIfRecordIsSelectable()) {
$resolvedSelectedRecords = $resolvedSelectedRecords->filter(
fn (Model | array $record): bool => $table->isRecordSelectable($record)
);
}
$maxSelectableRecords = $table->getMaxSelectableRecords();
if ($maxSelectableRecords && ($resolvedSelectedRecords->count() > $maxSelectableRecords)) {
throw new LogicException("The total count of selected records [{$resolvedSelectedRecords->count()}] must not exceed the maximum selectable records limit [{$maxSelectableRecords}].");
}
return $this->cachedSelectedTableRecords = $resolvedSelectedRecords;
}
$query = $this->getSelectedTableRecordsQuery($shouldFetchSelectedRecords, $chunkSize);
if (! $shouldFetchSelectedRecords) {
return $this->cachedSelectedTableRecords = $query->toBase()->pluck($query->getModel()->getQualifiedKeyName());
}
if ($chunkSize && $table->getRelationship() instanceof BelongsToMany && ! $table->allowsDuplicates()) {
$invadedRelationship = invade($table->getRelationship());
$resolvedSelectedRecords = $query->lazyById($chunkSize)
->tapEach(fn (Model $record) => $invadedRelationship->hydratePivotRelation([$record]));
} elseif ($chunkSize) {
$resolvedSelectedRecords = $query->lazyById($chunkSize);View on GitHub (pinned to 53483fa934)
When it happens
Trigger: Thrown at packages/tables/src/Concerns/HasBulkActions.php:264 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of filamentphp/filament@53483fa934 (2026-08-17).
Data as JSON: /api/errors/887ea91360262b99.
Report an issue: GitHub.