{"record":{"id":"c5a9b88e0d3a9deb","repo":"filamentphp/filament","slug":"the-action-this-getname-is-attempting-to-a","errorCode":null,"errorMessage":"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.","messagePattern":"The action \\[(.+?)\\] is attempting to access the selected records from the table, but it is not using \\[accessSelectedRecords\\(\\)\\], so they are not available\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/actions/src/Concerns/InteractsWithSelectedRecords.php","lineNumber":55,"sourceCode":"        $this->canAccessSelectedRecords = $condition;\n\n        return $this;\n    }\n\n    public function canAccessSelectedRecords(): bool\n    {\n        return (bool) $this->evaluate($this->canAccessSelectedRecords);\n    }\n\n    public function hasCanAccessSelectedRecords(): bool\n    {\n        return $this->canAccessSelectedRecords !== false;\n    }\n\n    public function getSelectedRecords(): EloquentCollection | Collection | LazyCollection\n    {\n        if (! $this->canAccessSelectedRecords()) {\n            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.\");\n        }\n\n        $records = $this->getLivewire()->getSelectedTableRecords($this->shouldFetchSelectedRecords(), $this->getSelectedRecordsChunkSize());\n\n        $this->totalSelectedRecordsCount = ($records instanceof LazyCollection)\n            ? $this->getLivewire()->getSelectedTableRecordsQuery(shouldFetchSelectedRecords: false)->count()\n            : $records->count();\n        $this->successfulSelectedRecordsCount = $this->totalSelectedRecordsCount;\n\n        return $records;\n    }\n\n    public function getSelectedRecordsQuery(): Builder\n    {\n        if (! $this->canAccessSelectedRecords()) {\n            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.\");\n        }\n","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/actions/src/Concerns/InteractsWithSelectedRecords.php#L37-L73","documentation":"Error \"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.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/actions/src/Concerns/InteractsWithSelectedRecords.php:55 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":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}