{"record":{"id":"952432cfe5c35357","repo":"hyperledger/fabric","slug":"current-config-has-no-consortiums-section-but-new","errorCode":null,"errorMessage":"current config has no consortiums section, but new config does","messagePattern":"current config has no consortiums section, but new config does","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"common/channelconfig/bundle.go","lineNumber":161,"sourceCode":"\t\tfor consortiumName, consortium := range cc.Consortiums() {\n\t\t\tnconsortium, ok := ncc.Consortiums()[consortiumName]\n\t\t\tif !ok {\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tfor orgName, org := range consortium.Organizations() {\n\t\t\t\tnorg, ok := nconsortium.Organizations()[orgName]\n\t\t\t\tif !ok {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\tmspID := org.MSPID()\n\t\t\t\tif mspID != norg.MSPID() {\n\t\t\t\t\treturn errors.Errorf(\"consortium %s org %s attempted to change MSP ID from %s to %s\", consortiumName, orgName, mspID, norg.MSPID())\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else if _, okNew := nb.ConsortiumsConfig(); okNew {\n\t\treturn errors.Errorf(\"current config has no consortiums section, but new config does\")\n\t}\n\n\treturn nil\n}\n\n// NewBundleFromEnvelope wraps the NewBundle function, extracting the needed\n// information from a full configtx\nfunc NewBundleFromEnvelope(env *cb.Envelope, bccsp bccsp.BCCSP) (*Bundle, error) {\n\tpayload, err := protoutil.UnmarshalPayload(env.Payload)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"failed to unmarshal payload from envelope\")\n\t}\n\n\tconfigEnvelope, err := configtx.UnmarshalConfigEnvelope(payload.Data)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"failed to unmarshal config envelope from payload\")\n\t}\n","sourceCodeStart":143,"sourceCodeEnd":179,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/common/channelconfig/bundle.go#L143-L179","documentation":"Returned by Bundle.ValidateNew when the current channel config has no consortiums section but the proposed new config introduces one. Adding a consortiums section to an existing application channel is not a legal config transition, so validation aborts.","triggerScenarios":"Thrown at common/channelconfig/bundle.go:161 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the Consortiums group from the config update","Regenerate the update against the correct application-channel base config"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2736b63f8fd5932511d56fe68b7039d15977f7f6","analyzedAt":"2026-09-04T08:52:36.465Z","contentChangedAt":"2026-09-04T08:52:36.465Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}