{"record":{"id":"a37f6968c2fd5fb9","repo":"octobercms/october","slug":"missing-content-uuid-set-the-attribute-blueprint","errorCode":null,"errorMessage":"Missing content UUID. Set the attribute 'blueprint_uuid' on the model first.","messagePattern":"Missing content UUID\\. Set the attribute 'blueprint_uuid' on the model first\\.","errorType":"exception","errorClass":"SystemException","httpStatus":null,"severity":"error","filePath":"modules/tailor/classes/BlueprintModel.php","lineNumber":99,"sourceCode":"         * Example usage:\n         *\n         *     $model->bindEvent('model.extendBlueprint', function (string $uuid) use (\\October\\Rain\\Database\\Model $model) {\n         *         // Apply specific uuid actions\n         *         $model->add_status_to_history = true;\n         *     });\n         *\n         */\n        $this->fireEvent('model.extendBlueprint', [$uuid]);\n    }\n\n    /**\n     * getBlueprintUuid\n     */\n    public function getBlueprintUuid(): string\n    {\n        $uuid = $this->blueprint_uuid;\n        if (!$uuid) {\n            throw new SystemException(\"Missing content UUID. Set the attribute 'blueprint_uuid' on the model first.\");\n        }\n\n        return $uuid;\n    }\n\n    /**\n     * setBlueprintUuid\n     */\n    public function setBlueprintUuid($value)\n    {\n        $this->blueprint_uuid = $value;\n    }\n\n    /**\n     * getBlueprintGroupAttribute\n     */\n    public function getBlueprintGroupAttribute(): ?string\n    {","sourceCodeStart":81,"sourceCodeEnd":117,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/tailor/classes/BlueprintModel.php#L81-L117","documentation":"Guard in BlueprintModel::getBlueprintUuid: the model's blueprint_uuid attribute is empty when content operations need it. Code interacting with the content table must set blueprint_uuid on the model before calling content/fieldset APIs.","triggerScenarios":"Thrown at modules/tailor/classes/BlueprintModel.php:99 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set blueprint_uuid on the model before accessing blueprint features","Ensure records are created through the blueprint so the uuid is assigned"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","contentChangedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}