{"record":{"id":"3b00cc8015d5f18e","repo":"hyperledger/fabric","slug":"failed-to-deserialize-values-3b00cc","errorCode":null,"errorMessage":"failed to deserialize values","messagePattern":"failed to deserialize values","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"common/channelconfig/applicationorg.go","lineNumber":44,"sourceCode":"\n// ApplicationOrgConfig defines the configuration for an application org\ntype ApplicationOrgConfig struct {\n\t*OrganizationConfig\n\tprotos *ApplicationOrgProtos\n\tname   string\n}\n\n// NewApplicationOrgConfig creates a new config for an application org\nfunc NewApplicationOrgConfig(id string, orgGroup *cb.ConfigGroup, mspConfig *MSPConfigHandler) (*ApplicationOrgConfig, error) {\n\tif len(orgGroup.Groups) > 0 {\n\t\treturn nil, fmt.Errorf(\"ApplicationOrg config does not allow sub-groups\")\n\t}\n\n\tprotos := &ApplicationOrgProtos{}\n\torgProtos := &OrganizationProtos{}\n\n\tif err := DeserializeProtoValuesFromGroup(orgGroup, protos, orgProtos); err != nil {\n\t\treturn nil, errors.Wrap(err, \"failed to deserialize values\")\n\t}\n\n\taoc := &ApplicationOrgConfig{\n\t\tname:   id,\n\t\tprotos: protos,\n\t\tOrganizationConfig: &OrganizationConfig{\n\t\t\tname:             id,\n\t\t\tprotos:           orgProtos,\n\t\t\tmspConfigHandler: mspConfig,\n\t\t},\n\t}\n\n\tif err := aoc.Validate(); err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn aoc, nil\n}","sourceCodeStart":26,"sourceCodeEnd":62,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/common/channelconfig/applicationorg.go#L26-L62","documentation":"Wrapped error from DeserializeProtoValuesFromGroup while reading the standardized values (MSP, anchor peers, capabilities) out of an application org's config group; the wrapped error names the value that failed to decode.","triggerScenarios":"Thrown at common/channelconfig/applicationorg.go:44 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the specific key/protobuf that failed","Fix the corresponding value in the org's config and resubmit the config update"],"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"}