temporalio/temporal · error
unknown workflow state sync result: %d
Error message
unknown workflow state sync result: %d
What it means
Error "unknown workflow state sync result: %d" thrown in temporalio/temporal.
Source
Thrown at service/history/api/verifychildworkflowcompletionrecorded/api.go:303
)
if err != nil {
emitResult(wideevents.ParentChildOutcomeFailed, err, "sync_workflow_state")
return err
}
switch result {
case workflowresend.SyncWorkflowStateResultSourceNotFound:
// TODO: add parent workflow to workflowNotFoundCache
emitResult(
wideevents.ParentChildOutcomeSourceNotFound,
serviceerror.NewNotFound("parent workflow not found on source cluster"),
"sync_workflow_state",
)
return nil
case workflowresend.SyncWorkflowStateResultSkipped:
return errVerify
case workflowresend.SyncWorkflowStateResultApplied:
default:
return fmt.Errorf("unknown workflow state sync result: %d", result)
}
_, _, observedParentWorkflowState, err := verifyChildExecution(ctx, workflowConsistencyChecker, request)
if observedParentWorkflowState != "" {
parentWorkflowState = observedParentWorkflowState
}
if err != nil {
emitResult(wideevents.ParentChildOutcomeFailed, err, "verify_after_resend")
return err
}
emitResult(wideevents.ParentChildOutcomeSucceeded, nil, "")
return nil
}
func parentResendEventDetails(initialError error) map[string]any {
return map[string]any{
"initial_error_type": util.ErrorType(initialError),
}View on GitHub (pinned to bde624efd1)
When it happens
Trigger: Thrown at service/history/api/verifychildworkflowcompletionrecorded/api.go:303 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of temporalio/temporal@bde624efd1 (2026-09-01).
Data as JSON: /api/errors/2d82c0e39d6421bf.
Report an issue: GitHub.