{"record":{"id":"fa8d34832caf948e","repo":"dbt-labs/dbt-core","slug":"unknown-method-on-resultobject-method","errorCode":null,"errorMessage":"Unknown method on ResultObject: '{method}'","messagePattern":"Unknown method on ResultObject: '(.+?)'","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-adapter/src/response.rs","lineNumber":415,"sourceCode":"            data,\n        }\n    }\n}\n\nimpl Object for ResultObject {\n    fn call_method(\n        self: &Arc<Self>,\n        _state: &State<'_, '_>,\n        method: &str,\n        _args: &[Value],\n        _listeners: &[Rc<dyn RenderingEventListener>],\n    ) -> Result<Value, minijinja::Error> {\n        // NOTE: the `keys` method is used by the `stage_external_sources` macro in\n        // `dbt-external-table`. Don't delete this unless the external package is fixed.\n        if method == \"keys\" {\n            Ok(Value::from_iter([\"response\", \"table\", \"data\"]))\n        } else {\n            Err(minijinja::Error::new(\n                minijinja::ErrorKind::UnknownMethod,\n                format!(\"Unknown method on ResultObject: '{method}'\"),\n            ))\n        }\n    }\n\n    fn get_value(self: &Arc<Self>, key: &Value) -> Option<Value> {\n        match key.as_str()? {\n            \"table\" => self\n                .table\n                .as_ref()\n                .map(|t| Value::from_object((*t).clone())),\n            \"data\" => self.data.clone(),\n            \"response\" => Some(Value::from_object(self.response.clone())),\n            _ => Some(Value::UNDEFINED), // Only return empty at Parsetime TODO fix later\n        }\n    }\n","sourceCodeStart":397,"sourceCodeEnd":433,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-adapter/src/response.rs#L397-L433","documentation":"Catch-all arm of the Jinja method dispatch on ResultObject: only the 'keys' method is implemented (deliberately retained for dbt-external-table's stage_external_sources macro); any other method invocation raises this UnknownMethod error. Data access should go through the response/table/data attributes instead.","triggerScenarios":"Thrown at crates/dbt-adapter/src/response.rs:415 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use attribute access (response, table, data) or the 'keys' method","Fix the method name in the template","Extend the match arm if a new accessor is required — but keep 'keys' for dbt-external-table compatibility"],"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"}