{"record":{"id":"95696e7e281ce75f","repo":"hasura/graphql-engine","slug":"unknown-type-represented-for-scalar-type-scalar-t","errorCode":null,"errorMessage":"unknown type represented for scalar type {scalar_type:}: {type_name:}","messagePattern":"unknown type represented for scalar type (.+?): (.+?)","errorType":"validation","errorClass":"DataConnectorScalarTypesError::ScalarTypeUnknownRepresentation","httpStatus":null,"severity":"error","filePath":"v3/crates/metadata-resolve/src/stages/data_connector_scalar_types/error.rs","lineNumber":25,"sourceCode":"\nuse crate::stages::{graphql_config, scalar_boolean_expressions};\n\nimpl ContextualError for DataConnectorScalarTypesError {\n    fn create_error_context(&self) -> Option<error_context::Context> {\n        None\n    }\n}\n\n#[derive(Debug, thiserror::Error)]\npub enum DataConnectorScalarTypesError {\n    #[error(\n        \"multiple type representations defined for scalar {scalar_type:} from data connector {data_connector:}\"\n    )]\n    DuplicateDataConnectorScalarRepresentation {\n        data_connector: Qualified<DataConnectorName>,\n        scalar_type: DataConnectorScalarType,\n    },\n    #[error(\"unknown type represented for scalar type {scalar_type:}: {type_name:}\")]\n    ScalarTypeUnknownRepresentation {\n        scalar_type: DataConnectorScalarType,\n        type_name: Qualified<CustomTypeName>,\n    },\n    #[error(\"{0}\")]\n    GraphqlConfigError(#[from] graphql_config::GraphqlConfigError),\n    #[error(\"{0}\")]\n    ScalarBooleanExpressionTypeError(\n        #[from] scalar_boolean_expressions::ScalarBooleanExpressionTypeError,\n    ),\n}\n","sourceCodeStart":7,"sourceCodeEnd":37,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/stages/data_connector_scalar_types/error.rs#L7-L37","documentation":"A scalar type from a data connector references a custom type name (via its representation) that is not defined anywhere in metadata, so its representation cannot be resolved.","triggerScenarios":"A connector scalar's type representation points at a CustomTypeName that has no corresponding type definition in the metadata.","commonSituations":"Removing a custom type while a connector scalar still references it; partial metadata imports.","solutions":["Define the missing custom type referenced by the scalar representation","Or change the scalar's representation to a built-in type","Rebuild"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// Ensure referenced custom type names exist\nfor name in referenced_custom_types { assert!(type_defs.contains(name)); }","typeGuard":null,"tryCatchPattern":"Catch ScalarTypeUnknownRepresentation and add the missing type or switch to a built-in representation.","preventionTips":["Validate all type references before deleting custom types","Run full metadata builds in CI to catch dangling references"],"tags":["scalar-types","unknown-type","metadata"],"backgroundTag":"unresolved-type-reference","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}