{"record":{"id":"2e4b22f0dd2c36f6","repo":"hasura/graphql-engine","slug":"unsupported-type-representation-representation","errorCode":null,"errorMessage":"Unsupported type representation {representation:} in scalar type {scalar_type:}, for argument preset name {argument_name:}. Only 'json' representation is supported.","messagePattern":"Unsupported type representation (.+?) in scalar type (.+?), for argument preset name (.+?)\\. Only 'json' representation is supported\\.","errorType":"validation","errorClass":"NDCValidationError","httpStatus":null,"severity":"error","filePath":"v3/crates/metadata-resolve/src/helpers/ndc_validation.rs","lineNumber":137,"sourceCode":"        function_or_procedure_name: String,\n        function_or_procedure_output_type: String,\n        command_name: String,\n        command_output_type: String,\n    },\n    #[error(\n        \"Custom result type of function {function_or_procedure_name:} does not match custom output type of command: {command_name:}\"\n    )]\n    FuncProcAndCommandCustomOutputTypeMismatch {\n        function_or_procedure_name: String,\n        command_name: String,\n    },\n    #[error(\"data connector does not support queries\")]\n    QueryCapabilityUnsupported,\n    #[error(\"data connector does not support mutations\")]\n    MutationCapabilityUnsupported,\n\n    // for `DataConnectorLink.argumentPresets` not all type representations are supported.\n    #[error(\n        \"Unsupported type representation {representation:} in scalar type {scalar_type:}, for argument preset name {argument_name:}. Only 'json' representation is supported.\"\n    )]\n    UnsupportedTypeInDataConnectorLinkArgumentPreset {\n        representation: String,\n        scalar_type: DataConnectorScalarType,\n        argument_name: open_dds::types::DataConnectorArgumentName,\n    },\n\n    #[error(\n        \"Argument '{argument_name:}' used in argument mapping for the field '{field_name:}' in object type '{object_type_name:}' is not defined in the data connector '{data_connector_name:}'.\"\n    )]\n    NoSuchArgumentInNDCArgumentMapping {\n        argument_name: open_dds::arguments::ArgumentName,\n        field_name: FieldName,\n        object_type_name: Qualified<CustomTypeName>,\n        data_connector_name: Qualified<DataConnectorName>,\n    },\n","sourceCodeStart":119,"sourceCodeEnd":155,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/helpers/ndc_validation.rs#L119-L155","documentation":"DataConnectorLink.argumentPresets only supports the 'json' type representation. If the scalar type used by an argument preset declares a different representation, resolution fails with this error listing the offending representation and argument.","triggerScenarios":"Setting argumentPresets on a DataConnectorLink where the scalar type of the argument uses a non-json representation (e.g. a custom formatted/date representation).","commonSituations":"Adding presets on arguments typed with custom scalar representations; upgrading from versions where this was unvalidated.","solutions":["Change the scalar type's representation to json, or remove the argument preset","Type the preset argument with a scalar that uses the json representation","Restructure so the preset is not needed for non-json scalars"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"if let Some(preset) = link.argument_presets.get(&arg) {\n    assert_eq!(scalar.representation, \"json\");\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use json representation scalars for any argument used in presets"],"tags":["argument-presets","scalar-representation","ndc","data-connector-link"],"backgroundTag":"unsupported-scalar-representation","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}