{"record":{"id":"bf834ba53a299f2e","repo":"filamentphp/filament","slug":"could-not-resolve-record-from-key-record-with","errorCode":null,"errorMessage":"Could not resolve record from key [{$record}] without a [resolveRecordUsing()] callback.","messagePattern":"Could not resolve record from key \\[(.+?)\\] without a \\[resolveRecordUsing\\(\\)\\] callback\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/actions/src/Concerns/InteractsWithRecord.php","lineNumber":104,"sourceCode":"\n    public function recordTitleAttribute(string | Closure | null $attribute): static\n    {\n        $this->recordTitleAttribute = $attribute;\n\n        return $this;\n    }\n\n    /**\n     * @return Model | array<string, mixed> | null\n     */\n    public function getRecord(bool $withDefault = true): Model | array | null\n    {\n        $record = $this->evaluate($this->record);\n\n        $isRecordKey = filled($record) && (! $record instanceof Model) && (! is_array($record));\n\n        if ($isRecordKey && (! $this->resolveRecordUsing)) {\n            throw new LogicException(\"Could not resolve record from key [{$record}] without a [resolveRecordUsing()] callback.\");\n        }\n\n        if ($isRecordKey) {\n            $record = $this->evaluate($this->resolveRecordUsing, [\n                'key' => $record,\n            ]);\n        }\n\n        if ($isRecordKey && $record && (! $this->record instanceof Closure)) {\n            $this->record = $record;\n        }\n\n        if ($record) {\n            return $this->ensureCorrectRecordType($record);\n        }\n\n        if ($record = $this->getGroup()?->getRecord($withDefault)) {\n            return $this->ensureCorrectRecordType($record);","sourceCodeStart":86,"sourceCodeEnd":122,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/actions/src/Concerns/InteractsWithRecord.php#L86-L122","documentation":"Error \"Could not resolve record from key [{$record}] without a [resolveRecordUsing()] callback.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/actions/src/Concerns/InteractsWithRecord.php:104 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"}