{"record":{"id":"023c2dbd834d13c8","repo":"github/github-mcp-server","slug":"field-q-is-iteration-value-must-be-a-non-empty-i","errorCode":null,"errorMessage":"field %q is ITERATION; value must be a non-empty iteration ID string","messagePattern":"field %q is ITERATION; value must be a non-empty iteration ID string","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/github/projects_batch.go","lineNumber":630,"sourceCode":"\t\t} else {\n\t\t\tknown := false\n\t\t\tfor _, opt := range field.Options {\n\t\t\t\tif opt.ID == s {\n\t\t\t\t\tknown = true\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\tif !known {\n\t\t\t\treturn zero, optErr\n\t\t\t}\n\t\t}\n\t\tv := githubv4.String(optID)\n\t\treturn githubv4.ProjectV2FieldValue{SingleSelectOptionID: &v}, nil\n\n\tcase \"ITERATION\":\n\t\ts, ok := raw.(string)\n\t\tif !ok || s == \"\" {\n\t\t\treturn zero, fmt.Errorf(\"field %q is ITERATION; value must be a non-empty iteration ID string\", field.Name)\n\t\t}\n\t\tv := githubv4.String(s)\n\t\treturn githubv4.ProjectV2FieldValue{IterationID: &v}, nil\n\n\tdefault:\n\t\treturn zero, fmt.Errorf(\"field %q has unsupported data type %q for update_project_items; use update_project_item instead\", field.Name, field.DataType)\n\t}\n}\n\nfunc toFloat64(raw any) (float64, bool) {\n\tvar number float64\n\tswitch v := raw.(type) {\n\tcase float64:\n\t\tnumber = v\n\tcase int:\n\t\tnumber = float64(v)\n\tcase int64:\n\t\tnumber = float64(v)","sourceCodeStart":612,"sourceCodeEnd":648,"githubUrl":"https://github.com/github/github-mcp-server/blob/0ea1f775a7c73eff1bd2e25904d01136756bbfe2/pkg/github/projects_batch.go#L612-L648","documentation":"Error \"field %q is ITERATION; value must be a non-empty iteration ID string\" thrown in github/github-mcp-server.","triggerScenarios":"Thrown at pkg/github/projects_batch.go:630 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0ea1f775a7c73eff1bd2e25904d01136756bbfe2","analyzedAt":"2026-08-15T18:10:19.804Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}