{"record":{"id":"82b23755b5dbde5f","repo":"dbt-labs/dbt-core","slug":"unknown-method-on-catalogrelation-name","errorCode":null,"errorMessage":"Unknown method on CatalogRelation: '{name}'","messagePattern":"Unknown method on CatalogRelation: '(.+?)'","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-adapter/src/catalog_relation.rs","lineNumber":1723,"sourceCode":"        _state: &minijinja::State<'_, '_>,\n        name: &str,\n        _args: &[Value],\n        _listeners: &[std::rc::Rc<dyn minijinja::listener::RenderingEventListener>],\n    ) -> Result<Value, minijinja::Error> {\n        match name {\n            \"supports_create_or_replace\" => {\n                if load_catalogs::fetch_use_catalogs_v2() {\n                    Ok(self.gate_by_adapter(vec![AdapterType::Databricks], || {\n                        Value::from(self.supports_create_or_replace())\n                    }))\n                } else {\n                    Err(minijinja::Error::new(\n                        minijinja::ErrorKind::InvalidOperation,\n                        \"catalog_relation.supports_create_or_replace() is only available under catalogs v2\",\n                    ))\n                }\n            }\n            _ => Err(minijinja::Error::new(\n                minijinja::ErrorKind::UnknownMethod,\n                format!(\"Unknown method on CatalogRelation: '{name}'\"),\n            )),\n        }\n    }\n\n    fn render(self: &Arc<Self>, f: &mut Formatter<'_>) -> std::fmt::Result {\n        write!(\n            f,\n            \"CatalogRelation(catalog={}, integration={}, type={}, format={})\",\n            self.catalog_name.as_deref().unwrap_or(\"<none>\"),\n            self.integration_name.as_deref().unwrap_or(\"<none>\"),\n            self.catalog_type.as_str(),\n            self.table_format.as_str()\n        )\n    }\n}\n","sourceCodeStart":1705,"sourceCodeEnd":1741,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-adapter/src/catalog_relation.rs#L1705-L1741","documentation":"Catch-all arm of the Jinja method dispatch on CatalogRelation: the template invoked a method name that has no implementation on this object (only supports_create_or_replace and the value protocol are handled), producing an UnknownMethod-style minijinja error.","triggerScenarios":"Thrown at crates/dbt-adapter/src/catalog_relation.rs:1723 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the method name in the macro/template","Add the expected method to the call_method match if it should exist","Include available method names in the error message to aid debugging"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0267ce9170576975b76b64ce856b2e5848e96617","analyzedAt":"2026-09-07T21:53:39.732Z","contentChangedAt":"2026-09-07T21:53:39.732Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}