{"record":{"id":"2d82c0e39d6421bf","repo":"temporalio/temporal","slug":"unknown-workflow-state-sync-result-d","errorCode":null,"errorMessage":"unknown workflow state sync result: %d","messagePattern":"unknown workflow state sync result: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"service/history/api/verifychildworkflowcompletionrecorded/api.go","lineNumber":303,"sourceCode":"\t)\n\tif err != nil {\n\t\temitResult(wideevents.ParentChildOutcomeFailed, err, \"sync_workflow_state\")\n\t\treturn err\n\t}\n\tswitch result {\n\tcase workflowresend.SyncWorkflowStateResultSourceNotFound:\n\t\t// TODO: add parent workflow to workflowNotFoundCache\n\t\temitResult(\n\t\t\twideevents.ParentChildOutcomeSourceNotFound,\n\t\t\tserviceerror.NewNotFound(\"parent workflow not found on source cluster\"),\n\t\t\t\"sync_workflow_state\",\n\t\t)\n\t\treturn nil\n\tcase workflowresend.SyncWorkflowStateResultSkipped:\n\t\treturn errVerify\n\tcase workflowresend.SyncWorkflowStateResultApplied:\n\tdefault:\n\t\treturn fmt.Errorf(\"unknown workflow state sync result: %d\", result)\n\t}\n\n\t_, _, observedParentWorkflowState, err := verifyChildExecution(ctx, workflowConsistencyChecker, request)\n\tif observedParentWorkflowState != \"\" {\n\t\tparentWorkflowState = observedParentWorkflowState\n\t}\n\tif err != nil {\n\t\temitResult(wideevents.ParentChildOutcomeFailed, err, \"verify_after_resend\")\n\t\treturn err\n\t}\n\temitResult(wideevents.ParentChildOutcomeSucceeded, nil, \"\")\n\treturn nil\n}\n\nfunc parentResendEventDetails(initialError error) map[string]any {\n\treturn map[string]any{\n\t\t\"initial_error_type\": util.ErrorType(initialError),\n\t}","sourceCodeStart":285,"sourceCodeEnd":321,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/service/history/api/verifychildworkflowcompletionrecorded/api.go#L285-L321","documentation":"Error \"unknown workflow state sync result: %d\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at service/history/api/verifychildworkflowcompletionrecorded/api.go:303 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"}