{"record":{"id":"928add5b2f216a78","repo":"hyperledger/fabric","slug":"initializing-channelconfig-failed","errorCode":null,"errorMessage":"initializing channelconfig failed","messagePattern":"initializing channelconfig failed","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"common/channelconfig/bundle.go","lineNumber":200,"sourceCode":"\t}\n\n\tchdr, err := protoutil.UnmarshalChannelHeader(payload.Header.ChannelHeader)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"failed to unmarshal channel header\")\n\t}\n\n\treturn NewBundle(chdr.ChannelId, configEnvelope.Config, bccsp)\n}\n\n// NewBundle creates a new immutable bundle of configuration\nfunc NewBundle(channelID string, config *cb.Config, bccsp bccsp.BCCSP) (*Bundle, error) {\n\tif err := preValidate(config); err != nil {\n\t\treturn nil, err\n\t}\n\n\tchannelConfig, err := NewChannelConfig(config.ChannelGroup, bccsp)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"initializing channelconfig failed\")\n\t}\n\n\tpolicyProviderMap := make(map[int32]policies.Provider)\n\tfor pType := range cb.Policy_PolicyType_name {\n\t\trtype := cb.Policy_PolicyType(pType)\n\t\tswitch rtype {\n\t\tcase cb.Policy_UNKNOWN:\n\t\t\t// Do not register a handler\n\t\tcase cb.Policy_SIGNATURE:\n\t\t\tpolicyProviderMap[pType] = cauthdsl.NewPolicyProvider(channelConfig.MSPManager())\n\t\tcase cb.Policy_MSP:\n\t\t\t// Add hook for MSP Handler here\n\t\t}\n\t}\n\n\tpolicyManager, err := policies.NewManagerImpl(RootGroupKey, policyProviderMap, config.ChannelGroup)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"initializing policymanager failed\")","sourceCodeStart":182,"sourceCodeEnd":218,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/common/channelconfig/bundle.go#L182-L218","documentation":"Wrapped failure of NewChannelConfig while building a channel config bundle: the config's channel group failed to deserialize/validate, so the bundle (used by peers/orderers to interpret the channel) cannot be constructed.","triggerScenarios":"Thrown at common/channelconfig/bundle.go:200 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the failing config group/value","Fix the offending section in the channel config and re-derive the bundle"],"exampleFix":null,"handlingStrategy":"try-catch","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"}