{"record":{"id":"55ba33fdb20719e0","repo":"langgenius/dify","slug":"customized-pipeline-template-not-found","errorCode":null,"errorMessage":"Customized pipeline template not found.","messagePattern":"Customized pipeline template not found\\.","errorType":"validation","errorClass":"ValueError","httpStatus":400,"severity":"error","filePath":"api/controllers/console/datasets/rag_pipeline/rag_pipeline.py","lineNumber":190,"sourceCode":"    @account_initialization_required\n    @enterprise_license_required\n    @with_current_tenant_id\n    def delete(self, current_tenant_id: str, template_id: str) -> tuple[str, int]:\n        RagPipelineService.delete_customized_pipeline_template(template_id, current_tenant_id, session=db.session())\n        return \"\", 204\n\n    @setup_required\n    @login_required\n    @account_initialization_required\n    @enterprise_license_required\n    @console_ns.response(200, \"Success\", console_ns.models[SimpleDataResponse.__name__])\n    def post(self, template_id: str) -> JsonResponseWithStatus:\n        with sessionmaker(db.engine, expire_on_commit=False).begin() as session:\n            template = session.scalar(\n                select(PipelineCustomizedTemplate).where(PipelineCustomizedTemplate.id == template_id).limit(1)\n            )\n            if not template:\n                raise ValueError(\"Customized pipeline template not found.\")\n\n        return dump_response(SimpleDataResponse, {\"data\": template.yaml_content}), 200\n\n\n@console_ns.route(\"/rag/pipelines/<string:pipeline_id>/customized/publish\")\nclass PublishCustomizedPipelineTemplateApi(Resource):\n    @console_ns.expect(console_ns.models[CustomizedPipelineTemplatePayload.__name__])\n    @console_ns.response(204, \"Pipeline template published\")\n    @setup_required\n    @login_required\n    @account_initialization_required\n    @enterprise_license_required\n    @knowledge_pipeline_publish_enabled\n    @with_current_user\n    @with_current_tenant_id\n    @model_validate(CustomizedPipelineTemplatePayload)\n    def post(\n        self,","sourceCodeStart":172,"sourceCodeEnd":208,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/api/controllers/console/datasets/rag_pipeline/rag_pipeline.py#L172-L208","documentation":"Error \"Customized pipeline template not found.\" thrown in langgenius/dify.","triggerScenarios":"Thrown at api/controllers/console/datasets/rag_pipeline/rag_pipeline.py:190 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":"ef8544b173fd6cd7a8e71df2cab576e52bebbfbc","analyzedAt":"2026-08-12T05:15:17.394Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}