filamentphp/filament · error · LogicException

The action [{$this->getName()}] is attempting to access the

Error message

The action [{$this->getName()}] is attempting to access the selected records query from the table, but it is not using [accessSelectedRecords()], so they are not available.

What it means

Error "The action [{$this->getName()}] is attempting to access the selected records query from the table, but it is not using [accessSelectedRecords()], so they are not available." thrown in filamentphp/filament.

Source

Thrown at packages/actions/src/Concerns/InteractsWithSelectedRecords.php:71

    {
        if (! $this->canAccessSelectedRecords()) {
            throw new LogicException("The action [{$this->getName()}] is attempting to access the selected records from the table, but it is not using [accessSelectedRecords()], so they are not available.");
        }

        $records = $this->getLivewire()->getSelectedTableRecords($this->shouldFetchSelectedRecords(), $this->getSelectedRecordsChunkSize());

        $this->totalSelectedRecordsCount = ($records instanceof LazyCollection)
            ? $this->getLivewire()->getSelectedTableRecordsQuery(shouldFetchSelectedRecords: false)->count()
            : $records->count();
        $this->successfulSelectedRecordsCount = $this->totalSelectedRecordsCount;

        return $records;
    }

    public function getSelectedRecordsQuery(): Builder
    {
        if (! $this->canAccessSelectedRecords()) {
            throw new LogicException("The action [{$this->getName()}] is attempting to access the selected records query from the table, but it is not using [accessSelectedRecords()], so they are not available.");
        }

        return $this->getLivewire()->getSelectedTableRecordsQuery($this->shouldFetchSelectedRecords(), $this->getSelectedRecordsChunkSize());
    }

    public function getIndividuallyAuthorizedSelectedRecords(): EloquentCollection | Collection | LazyCollection
    {
        if (! $this->shouldAuthorizeIndividualRecords()) {
            return $this->getSelectedRecords();
        }

        $this->successfulSelectedRecordsCount = 0;

        $authorizationResponses = [];
        $failureCountsByAuthorizationResponse = [];
        $failureCountWithoutAuthorizationResponse = 0;

        try {

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/actions/src/Concerns/InteractsWithSelectedRecords.php:71 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/20ce594b82944833. Report an issue: GitHub.