{"record":{"id":"b28b157fa2930343","repo":"apache/beam","slug":"unknown-logical-type-typeinfo-logicaltype-urn","errorCode":null,"errorMessage":"Unknown logical type: ${typeInfo.logicalType.urn}","messagePattern":"Unknown logical type: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"sdks/typescript/src/apache_beam/coders/row_coder.ts","lineNumber":309,"sourceCode":"        if (logicalTypeInfo !== undefined) {\n          const reprCoder = this.getCoderFromType(\n            typeInfo.logicalType.representation!,\n          );\n          return {\n            encode: (element: any, writer: Writer, context: Context) =>\n              reprCoder.encode(\n                logicalTypeInfo.toRepr(element),\n                writer,\n                context,\n              ),\n            decode: (reader: Reader, context: Context) =>\n              logicalTypeInfo.fromRepr(reprCoder.decode(reader, context)),\n            toProto: (pipelineContext: ProtoContext) => {\n              throw new Error(\"Ephemeral coder.\");\n            },\n          };\n        } else {\n          throw new Error(`Unknown logical type: ${typeInfo.logicalType.urn}`);\n        }\n        break;\n      default:\n        throw new Error(\n          `Encountered a type that is not currently supported by RowCoder: ${JSON.stringify(\n            t,\n          )}`,\n        );\n    }\n  }\n\n  static fromSchema(schema: Schema): RowCoder {\n    return new RowCoder(schema);\n  }\n\n  static fromJSON(obj: any): RowCoder {\n    return new RowCoder(RowCoder.inferSchemaOfJSON(obj));\n  }","sourceCodeStart":291,"sourceCodeEnd":327,"githubUrl":"https://github.com/apache/beam/blob/12126d8942aaf848030c478b4c6a28c6af861c66/sdks/typescript/src/apache_beam/coders/row_coder.ts#L291-L327","documentation":"A schema field uses a logicalType whose urn is not present in the logicalTypes registry consulted by getNonNullCoderFromType. The urn on typeInfo.logicalType is the input at fault: it names a logical type this SDK build has no registered implementation for, so no coder can be constructed.","triggerScenarios":"Thrown at sdks/typescript/src/apache_beam/coders/row_coder.ts:309 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the urn in the error against the urns exported by the SDK's logicalTypes registry and correct typos or version mismatches in the schema.","Register a custom logical type (urn, toRepr, fromRepr, representation) in the logicalTypes map before constructing the RowCoder.","Regenerate the schema with the same Beam version that will encode/decode the data so logical type urns line up."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"12126d8942aaf848030c478b4c6a28c6af861c66","analyzedAt":"2026-09-13T01:50:10.254Z","contentChangedAt":"2026-09-13T01:50:10.254Z","schemaVersion":2},"datasetVersion":"2026-09-20T03:17:13.778Z"}