{"record":{"id":"d14141d6febbe904","repo":"hasura/graphql-engine","slug":"the-field-field-name-in-object-type-type-nam","errorCode":null,"errorMessage":"The field '{field_name}' in object type '{type_name}' cannot be mapped to data connector '{data_connector}' field '{data_connector_object}.{data_connector_column}' because: {issue}","messagePattern":"The field '(.+?)' in object type '(.+?)' cannot be mapped to data connector '(.+?)' field '(.+?)\\.(.+?)' because: (.+?)","errorType":"validation","errorClass":"ObjectTypesIssue","httpStatus":null,"severity":"error","filePath":"v3/crates/metadata-resolve/src/stages/object_types/types.rs","lineNumber":491,"sourceCode":"        expected: QualifiedTypeName,\n        provided: QualifiedTypeName,\n    },\n    #[error(\n        \"Field type {field_type} could not be found in field {field_name} for object type {object_type_name}\"\n    )]\n    FieldTypeNotFound {\n        field_type: Qualified<CustomTypeName>,\n        object_type_name: Qualified<CustomTypeName>,\n        field_name: FieldName,\n    },\n    #[error(\n        \"Recursive reference detected for object type '{type_name}' through non-null field path: {field_path}\"\n    )]\n    RecursiveObjectType {\n        type_name: Qualified<CustomTypeName>,\n        field_path: String,\n    },\n    #[error(\n        \"The field '{field_name}' in object type '{type_name}' cannot be mapped to data connector '{data_connector}' field '{data_connector_object}.{data_connector_column}' because: {issue}\"\n    )]\n    FieldTypeNdcMappingIssue {\n        field_name: FieldName,\n        type_name: Qualified<CustomTypeName>,\n        data_connector: Qualified<DataConnectorName>,\n        data_connector_object: DataConnectorObjectType,\n        data_connector_column: DataConnectorColumnName,\n        issue: TypeCompatibilityIssue,\n    },\n}\n\nimpl ShouldBeAnError for ObjectTypesIssue {\n    fn should_be_an_error(&self, flags: &open_dds::flags::OpenDdFlags) -> bool {\n        match self {\n            ObjectTypesIssue::DuplicateOperatorsDefined { .. } => flags\n                .contains(open_dds::flags::Flag::DisallowDuplicateOperatorDefinitionsForScalarType),\n            ObjectTypesIssue::DuplicateAggregateFunctionsDefined { .. } => flags.contains(","sourceCodeStart":473,"sourceCodeEnd":509,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/stages/object_types/types.rs#L473-L509","documentation":"A field-to-connector-column mapping failed; the inner 'issue' (an ObjectTypesIssue) explains why. This wrapper adds context about which field of which object type was being mapped to which data connector object and column when the failure occurred.","triggerScenarios":"Any NDC mapping problem on a single field — type mismatch on the column, unsupported column type, missing column in the connector object — surfaces through this contextual error.","commonSituations":"Column dropped or renamed in the database while metadata still maps the field to it; column type unsupported by the connector; type mapping inconsistencies introduced by schema drift.","solutions":["Read the inner issue in the message — it names the concrete failure (type mismatch, unknown column, etc.) and fix that","Refresh the connector schema / re-track the table so column metadata matches the database","Correct or remove the field mapping for the failing field"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"// Verify each mapped column exists in the connector object before apply\nconst obj = ndcSchema.object_types[dcObject];\nfor (const m of fieldMappings) if (!(m.column in obj.fields)) throw new Error(`Column ${m.column} missing`);","typeGuard":null,"tryCatchPattern":"// Inspect the inner issue for actionable detail\ntry { await applyMetadata(md); }\ncatch (e) { if (/cannot be mapped to data connector/.test(String(e))) { logInnerIssue(e); } throw e; }","preventionTips":["Re-track tables after database schema changes","Automate field mapping generation from the live connector schema"],"tags":["hasura","metadata","data-connectors","field-mapping","contextual-error"],"backgroundTag":"field-mapping-failed","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}