{"record":{"id":"a643a0ae5cece62d","repo":"apache/beam","slug":"value-of-v-cannot-bind-to-v","errorCode":null,"errorMessage":"value of %v cannot bind to %v","messagePattern":"value of (.+?) cannot bind to (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"sdks/go/pkg/beam/core/graph/bind.go","lineNumber":232,"sourceCode":"\t\t\t\tkind = ReIter\n\t\t\t\tother = typex.New(trimmed[0])\n\n\t\t\tcase funcx.FnMultiMap:\n\t\t\t\treturn nil, kind, errors.Errorf(\"input to MultiMap side input must be KV, got %v\", t)\n\n\t\t\tdefault:\n\t\t\t\treturn nil, kind, errors.Errorf(\"unexpected param kind: %v\", arg)\n\t\t\t}\n\t\t}\n\tcase typex.Composite:\n\t\tswitch t.Type() {\n\t\tcase typex.KVType:\n\t\t\tif isMain {\n\t\t\t\tif args[0].Kind != funcx.FnValue {\n\t\t\t\t\treturn nil, kind, errors.Errorf(\"key of %v cannot bind to %v\", t, args[0])\n\t\t\t\t}\n\t\t\t\tif args[1].Kind != funcx.FnValue {\n\t\t\t\t\treturn nil, kind, errors.Errorf(\"value of %v cannot bind to %v\", t, args[1])\n\t\t\t\t}\n\t\t\t\tother = typex.NewKV(typex.New(args[0].T), typex.New(args[1].T))\n\t\t\t} else {\n\t\t\t\tswitch args[0].Kind {\n\t\t\t\tcase funcx.FnIter:\n\t\t\t\t\tvalues, _ := funcx.UnfoldIter(args[0].T)\n\t\t\t\t\ttrimmed := trimIllegal(values)\n\t\t\t\t\tif len(trimmed) != 2 {\n\t\t\t\t\t\treturn nil, kind, errors.Errorf(\"%v cannot bind to %v\", t, args[0])\n\t\t\t\t\t}\n\n\t\t\t\t\tkind = Iter\n\t\t\t\t\tother = typex.NewKV(typex.New(trimmed[0]), typex.New(trimmed[1]))\n\n\t\t\t\tcase funcx.FnReIter:\n\t\t\t\t\tvalues, _ := funcx.UnfoldReIter(args[0].T)\n\t\t\t\t\ttrimmed := trimIllegal(values)\n\t\t\t\t\tif len(trimmed) != 2 {","sourceCodeStart":214,"sourceCodeEnd":250,"githubUrl":"https://github.com/apache/beam/blob/12126d8942aaf848030c478b4c6a28c6af861c66/sdks/go/pkg/beam/core/graph/bind.go#L214-L250","documentation":"Error returned by tryBindInbound when binding a KV-typed main input: the second component (the value) of the collection type cannot bind to the DoFn's second parameter because it is not a funcx.FnValue kind parameter. Main-input KV bindings require both parameters to be plain values; the value-side mismatch triggers this error.","triggerScenarios":"Thrown at sdks/go/pkg/beam/core/graph/bind.go:232 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Make the DoFn's second (value) parameter a plain value type matching the KV value type","Re-shape the input PCollection (e.g. beam.ParDo to flatten/retype) to match the DoFn signature"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"12126d8942aaf848030c478b4c6a28c6af861c66","analyzedAt":"2026-09-13T01:50:10.254Z","contentChangedAt":"2026-09-13T01:50:10.254Z","schemaVersion":2},"datasetVersion":"2026-09-20T03:17:13.778Z"}