{"record":{"id":"80ab8f615ef80d96","repo":"temporalio/temporal","slug":"unable-to-decode-user-memo-from-combined-memo-payl","errorCode":null,"errorMessage":"unable to decode user memo from combined memo payload: %w","messagePattern":"unable to decode user memo from combined memo payload: %w","errorType":"exception","errorClass":"DeserializationError","httpStatus":null,"severity":"error","filePath":"common/persistence/visibility/visibility_manager_impl.go","lineNumber":297,"sourceCode":"\t\t\tcustomSAs.IndexedFields[name] = payloadValue\n\t\t}\n\t}\n\treturn\n}\n\n// splitUserAndChasmMemo extracts user memo and CHASM memo from the combined memo.\nfunc splitUserAndChasmMemo(exec *store.InternalExecutionInfo) (userMemo *commonpb.Memo, chasmMemoPayload *commonpb.Payload, err error) {\n\tcombinedMemo, err := deserializeMemo(exec.Memo)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tif combinedMemo != nil && isChasmExecution(exec.SearchAttributes) {\n\t\t// Archetype exists - split memo into user and chasm parts\n\t\tuserPayload := combinedMemo.Fields[chasm.UserMemoKey]\n\t\tif err := payload.Decode(userPayload, &userMemo); err != nil {\n\t\t\treturn nil, nil, serialization.NewDeserializationError(\n\t\t\t\tenumspb.ENCODING_TYPE_PROTO3, fmt.Errorf(\"unable to decode user memo from combined memo payload: %w\", err))\n\t\t}\n\t\tchasmMemoPayload = combinedMemo.Fields[chasm.ChasmMemoKey]\n\t} else {\n\t\t// Archetype doesn't match or no combined memo - return entire memo as user memo\n\t\tuserMemo = combinedMemo\n\t}\n\treturn\n}\n\nfunc (p *visibilityManagerImpl) CountChasmExecutions(\n\tctx context.Context,\n\trequest *visibilityservice.CountChasmExecutionsRequest,\n) (*visibilityservice.CountChasmExecutionsResponse, error) {\n\tinternalResp, err := p.store.CountChasmExecutions(ctx, request)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n","sourceCodeStart":279,"sourceCodeEnd":315,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/common/persistence/visibility/visibility_manager_impl.go#L279-L315","documentation":"Error \"unable to decode user memo from combined memo payload: %w\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at common/persistence/visibility/visibility_manager_impl.go:297 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bde624efd13fbd3843654058db6d9c716166318b","analyzedAt":"2026-09-01T07:18:39.080Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}