{"record":{"id":"c56a13e4a00b2e57","repo":"hasura/graphql-engine","slug":"argument-argument-name-used-in-argument-mappi","errorCode":null,"errorMessage":"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:}'.","messagePattern":"Argument '(.+?)' used in argument mapping for the field '(.+?)' in object type '(.+?)' is not defined in the data connector '(.+?)'\\.","errorType":"validation","errorClass":"NDCValidationError","httpStatus":null,"severity":"error","filePath":"v3/crates/metadata-resolve/src/helpers/ndc_validation.rs","lineNumber":146,"sourceCode":"        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\n    #[error(\n        \"Field {field_name:} not found in object type {object_type:} in data connector {data_connector_name:}.\"\n    )]\n    NoSuchFieldInObjectType {\n        data_connector_name: Qualified<DataConnectorName>,\n        field_name: String,\n        object_type: String,\n    },\n","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/helpers/ndc_validation.rs#L128-L164","documentation":"An NDC argument mapping on an object type field references an argument name that the target data connector does not define. Argument mappings must only use arguments the connector exposes.","triggerScenarios":"Adding an argumentMapping on a field with an argument name absent from the connector's declared arguments; renaming an argument in the connector without updating the mapping.","commonSituations":"Connector schema drift; hand-written mappings with typos; copying mappings between connectors that expose different arguments.","solutions":["Check the connector's schema for defined argument names and use one of them","Fix typos/case in the argument name in the mapping","Refresh connector schema and re-apply metadata"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"assert!(connector.arguments.contains(&mapping.argument_name));","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Derive argument mappings from the connector schema rather than hand-writing them"],"tags":["argument-mapping","ndc","object-type"],"backgroundTag":"ndc-argument-not-found","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}