{"record":{"id":"20ce594b82944833","repo":"filamentphp/filament","slug":"the-action-this-getname-is-attempting-to-a-20ce59","errorCode":null,"errorMessage":"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.","messagePattern":"The action \\[(.+?)\\] is attempting to access the selected records query 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":71,"sourceCode":"    {\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\n        return $this->getLivewire()->getSelectedTableRecordsQuery($this->shouldFetchSelectedRecords(), $this->getSelectedRecordsChunkSize());\n    }\n\n    public function getIndividuallyAuthorizedSelectedRecords(): EloquentCollection | Collection | LazyCollection\n    {\n        if (! $this->shouldAuthorizeIndividualRecords()) {\n            return $this->getSelectedRecords();\n        }\n\n        $this->successfulSelectedRecordsCount = 0;\n\n        $authorizationResponses = [];\n        $failureCountsByAuthorizationResponse = [];\n        $failureCountWithoutAuthorizationResponse = 0;\n\n        try {","sourceCodeStart":53,"sourceCodeEnd":89,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/actions/src/Concerns/InteractsWithSelectedRecords.php#L53-L89","documentation":"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.","triggerScenarios":"Thrown at packages/actions/src/Concerns/InteractsWithSelectedRecords.php:71 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"}