{"record":{"id":"0a73a6aabdd2ca6b","repo":"temporalio/temporal","slug":"create-annotations-w","errorCode":null,"errorMessage":"create annotations: %w","messagePattern":"create annotations: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"service/frontend/workflow_handler.go","lineNumber":4679,"sourceCode":"\taction := queryResponse.GetSchedule().GetAction().GetAction()\n\tstartWorkflowAction, ok := action.(*schedulepb.ScheduleAction_StartWorkflow)\n\tif !ok {\n\t\treturn nil\n\t}\n\treturn startWorkflowAction.StartWorkflow\n}\n\nfunc (wh *WorkflowHandler) annotateSearchAttributes(\n\tsearchAttributes *commonpb.SearchAttributes,\n\tnsName string,\n) (*commonpb.SearchAttributes, error) {\n\tunaliasedSearchAttrs, err := searchattribute.UnaliasFields(\n\t\twh.saMapperProvider,\n\t\tsearchAttributes,\n\t\tnsName,\n\t)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"create annotations: %w\", err)\n\t}\n\tsaTypeMap, err := wh.saProvider.GetSearchAttributes(wh.visibilityMgr.GetIndexName(), false)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"create annotations: %w\", err)\n\t}\n\tsearchattribute.ApplyTypeMap(unaliasedSearchAttrs, saTypeMap)\n\tannotatedAttributes, err := searchattribute.AliasFields(\n\t\twh.saMapperProvider,\n\t\tunaliasedSearchAttrs,\n\t\tnsName,\n\t)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"create annotations: %w\", err)\n\t}\n\treturn annotatedAttributes, nil\n}\n\n// Changes the configuration or state of an existing schedule.","sourceCodeStart":4661,"sourceCodeEnd":4697,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/service/frontend/workflow_handler.go#L4661-L4697","documentation":"Error \"create annotations: %w\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at service/frontend/workflow_handler.go:4679 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"}