{"record":{"id":"76020412581485eb","repo":"hyperledger/fabric","slug":"invalid-config-must-contain-application-config","errorCode":null,"errorMessage":"invalid config: must contain application config","messagePattern":"invalid config: must contain application config","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"orderer/common/channelparticipation/validator.go","lineNumber":62,"sourceCode":"\t}\n\n\tcryptoProvider := factory.GetDefault()\n\tbundle, err := channelconfig.NewBundleFromEnvelope(envelope, cryptoProvider)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tchannelID = bundle.ConfigtxValidator().ChannelID()\n\n\t// Check channel type\n\t_, isSystemChannel := bundle.ConsortiumsConfig()\n\tif isSystemChannel {\n\t\treturn \"\", errors.WithMessage(types.ErrSystemChannelNotSupported, \"invalid config: contains consortiums\")\n\t}\n\n\t_, isAppChannel := bundle.ApplicationConfig()\n\tif !isAppChannel {\n\t\treturn \"\", errors.New(\"invalid config: must contain application config\")\n\t}\n\n\treturn channelID, err\n}\n\n// ValidateUpdateConfigEnvelope checks whether this envelope can be used as an update config for the channel participation API.\n// It returns the channel ID.\n// It verifies that it is not a system channel by checking that consortiums config does not exist.\n// It verifies it is an application channel by checking that the application group exists.\n// It returns an error when it cannot be used as a update config envelope.\nfunc ValidateUpdateConfigEnvelope(env *cb.Envelope) (channelID string, err error) {\n\tpayload, err := protoutil.UnmarshalPayload(env.Payload)\n\tif err != nil {\n\t\treturn \"\", errors.New(\"bad payload\")\n\t}\n\n\tif payload.Header == nil || payload.Header.ChannelHeader == nil {\n\t\treturn \"\", errors.New(\"bad header\")","sourceCodeStart":44,"sourceCodeEnd":80,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/orderer/common/channelparticipation/validator.go#L44-L80","documentation":"ValidateJoinBlock guard: the config bundle from the join block has no application group, so it is not an application channel configuration. The channel participation API requires a config that defines an Application section.","triggerScenarios":"Thrown at orderer/common/channelparticipation/validator.go:62 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a config block that contains the Application group (an app-channel genesis or config block)","Regenerate the channel genesis block with configtxgen for an application channel"],"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"}