{"record":{"id":"dce63928b4c366b5","repo":"temporalio/temporal","slug":"error-determining-continue-as-new-task-queue-prese","errorCode":null,"errorMessage":"error determining continue-as-new task queue presence in inherited version: %w","messagePattern":"error determining continue-as-new task queue presence in inherited version: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"service/history/workflow/mutable_state_impl.go","lineNumber":2783,"sourceCode":"\n\t// If there is a pinned override, then the effective version will be the same as the pinned override version.\n\t// If this is a cross-TQ child, we don't want to ask matching the same question twice, so we re-use the result from\n\t// the first matching task-queue-in-version check.\n\tnewTQInPinnedVersion := false\n\n\t// By default, the new run initiated by workflow ContinueAsNew of a Pinned run, will inherit the previous run's\n\t// version if the new run's Task Queue belongs to that version.\n\t// If the continue-as-new command says to use InitialVersioningBehavior AutoUpgrade, the new run will start as\n\t// AutoUpgrade in the first task and then assume the SDK-sent behavior on first workflow task completion.\n\tvar inheritedPinnedVersion *deploymentpb.WorkerDeploymentVersion\n\tif previousExecutionState.GetEffectiveVersioningBehavior() == enumspb.VERSIONING_BEHAVIOR_PINNED &&\n\t\tcommand.GetInitialVersioningBehavior() == enumspb.CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED {\n\t\tinheritedPinnedVersion = worker_versioning.ExternalWorkerDeploymentVersionFromDeployment(previousExecutionState.GetEffectiveDeployment())\n\t\tnewTQ := command.GetTaskQueue().GetName()\n\t\tif newTQ != previousExecutionInfo.GetTaskQueue() {\n\t\t\tnewTQInPinnedVersion, err = IsWFTaskQueueInVersionDetector(ctx, ms.GetNamespaceEntry().ID().String(), newTQ, inheritedPinnedVersion)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"error determining continue-as-new task queue presence in inherited version: %w\", err)\n\t\t\t}\n\t\t\tif !newTQInPinnedVersion {\n\t\t\t\tinheritedPinnedVersion = nil\n\t\t\t}\n\t\t}\n\t}\n\n\t// Pinned override is inherited if Task Queue of new run is compatible with the override version.\n\tvar pinnedOverride *workflowpb.VersioningOverride\n\tif o := previousExecutionInfo.GetVersioningInfo().GetVersioningOverride(); worker_versioning.OverrideIsPinned(o) {\n\t\tpinnedOverride = o\n\t\tnewTQ := command.GetTaskQueue().GetName()\n\t\tif newTQ != previousExecutionInfo.GetTaskQueue() && !newTQInPinnedVersion {\n\t\t\tpinnedOverride = nil\n\t\t}\n\t} else if oneTimeTarget := worker_versioning.GetOverrideOneTimeTargetVersion(o); oneTimeTarget != nil {\n\t\tms.logger.Warn(\"Unexpected one-time versioning override found during continue-as-new inheritance\",\n\t\t\ttag.WorkflowNamespace(ms.GetNamespaceEntry().Name().String()),","sourceCodeStart":2765,"sourceCodeEnd":2801,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/service/history/workflow/mutable_state_impl.go#L2765-L2801","documentation":"Error \"error determining continue-as-new task queue presence in inherited version: %w\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at service/history/workflow/mutable_state_impl.go:2783 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"}