{"record":{"id":"5025a6b81b22215c","repo":"hashicorp/nomad","slug":"dispatch-did-not-provide-required-meta-keys-v","errorCode":null,"errorMessage":"Dispatch did not provide required meta keys: %v","messagePattern":"Dispatch did not provide required meta keys: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/job_endpoint.go","lineNumber":2190,"sourceCode":"\t\t}\n\n\t\treturn fmt.Errorf(\"Dispatch request included unpermitted metadata keys: %v\", flat)\n\t}\n\n\tmissing := make(map[string]struct{})\n\tfor _, k := range job.ParameterizedJob.MetaRequired {\n\t\tif _, ok := req.Meta[k]; !ok {\n\t\t\tmissing[k] = struct{}{}\n\t\t}\n\t}\n\n\tif len(missing) != 0 {\n\t\tflat := make([]string, 0, len(missing))\n\t\tfor k := range missing {\n\t\t\tflat = append(flat, k)\n\t\t}\n\n\t\treturn fmt.Errorf(\"Dispatch did not provide required meta keys: %v\", flat)\n\t}\n\n\t// Confirm that Priority is appropriately set on the JobDispatchRequest\n\tif req.Priority < structs.JobMinPriority || req.Priority > config.JobMaxPriority {\n\t\treturn fmt.Errorf(\"dispatch job priority must be between [%d, %d]\", structs.JobMinPriority, config.JobMaxPriority)\n\t}\n\n\treturn nil\n}\n\n// ScaleStatus retrieves the scaling status for a job\nfunc (j *Job) ScaleStatus(args *structs.JobScaleStatusRequest,\n\treply *structs.JobScaleStatusResponse) error {\n\n\tauthErr := j.srv.Authenticate(j.ctx, args)\n\tif done, err := j.srv.forward(\"Job.ScaleStatus\", args, args, reply); done {\n\t\treturn err\n\t}","sourceCodeStart":2172,"sourceCodeEnd":2208,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/job_endpoint.go#L2172-L2208","documentation":"Fires in validateDispatchRequest when the dispatch payload meta is missing one or more keys listed in the parameterized job's MetaRequired; the listed keys must all be provided with nomad job dispatch -meta.","triggerScenarios":"Thrown at nomad/job_endpoint.go:2190 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass the missing meta keys: nomad job dispatch -meta <key>=<value> ...","Review the parameterized job's meta_required list"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"482b49bf1aec006f089bcfc7e632d8f6ac303e5e","analyzedAt":"2026-09-04T07:54:14.808Z","contentChangedAt":"2026-09-04T07:54:14.808Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}