{"record":{"id":"665699bd5aab48b3","repo":"temporalio/temporal","slug":"failed-to-parse-link-to-link-workflowevent-unknow","errorCode":null,"errorMessage":"failed to parse link to Link_WorkflowEvent: unknown reference type: %q","messagePattern":"failed to parse link to Link_WorkflowEvent: unknown reference type: %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"common/nexus/link_converter.go","lineNumber":225,"sourceCode":"\tswitch refType := link.URL.Query().Get(linkWorkflowEventReferenceTypeKey); refType {\n\tcase eventReferenceType:\n\t\teventRef, err := convertURLQueryToLinkWorkflowEventEventReference(link.URL.Query())\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to parse link to Link_WorkflowEvent: %w\", err)\n\t\t}\n\t\twe.Reference = &commonpb.Link_WorkflowEvent_EventRef{\n\t\t\tEventRef: eventRef,\n\t\t}\n\tcase requestIDReferenceType:\n\t\trequestIDRef, err := convertURLQueryToLinkWorkflowEventRequestIdReference(link.URL.Query())\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to parse link to Link_WorkflowEvent: %w\", err)\n\t\t}\n\t\twe.Reference = &commonpb.Link_WorkflowEvent_RequestIdRef{\n\t\t\tRequestIdRef: requestIDRef,\n\t\t}\n\tdefault:\n\t\treturn nil, fmt.Errorf(\n\t\t\t\"failed to parse link to Link_WorkflowEvent: unknown reference type: %q\",\n\t\t\trefType,\n\t\t)\n\t}\n\n\treturn we, nil\n}\n\nfunc convertLinkWorkflowEventEventReferenceToURLQuery(eventRef *commonpb.Link_WorkflowEvent_EventReference) string {\n\tvalues := url.Values{}\n\tvalues.Set(linkWorkflowEventReferenceTypeKey, eventReferenceType)\n\tif eventRef.GetEventId() > 0 {\n\t\tvalues.Set(linkEventIDKey, strconv.FormatInt(eventRef.GetEventId(), 10))\n\t}\n\tvalues.Set(linkEventTypeKey, eventRef.GetEventType().String())\n\treturn values.Encode()\n}\n","sourceCodeStart":207,"sourceCodeEnd":243,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/common/nexus/link_converter.go#L207-L243","documentation":"Error \"failed to parse link to Link_WorkflowEvent: unknown reference type: %q\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at common/nexus/link_converter.go:225 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"}