{"record":{"id":"6eea8946953bbc0d","repo":"apache/flink","slug":"could-not-serialize-row-s-6eea89","errorCode":null,"errorMessage":"Could not serialize row '%s'.","messagePattern":"Could not serialize row '(.+?)'\\.","errorType":"exception","errorClass":"java.lang.RuntimeException","httpStatus":null,"severity":"error","filePath":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowDataSerializationSchema.java","lineNumber":119,"sourceCode":"                JacksonMapperFactory.createObjectMapper()\n                        .configure(\n                                JsonGenerator.Feature.WRITE_BIGDECIMAL_AS_PLAIN,\n                                encodeDecimalAsPlainNumber)\n                        .configure(DeserializationFeature.USE_BIG_DECIMAL_FOR_FLOATS, true)\n                        .configure(JsonNodeFeature.STRIP_TRAILING_BIGDECIMAL_ZEROES, false);\n    }\n\n    @Override\n    public byte[] serialize(RowData row) {\n        if (node == null || ignoreNullFields) {\n            node = mapper.createObjectNode();\n        }\n\n        try {\n            runtimeConverter.convert(mapper, node, row);\n            return mapper.writeValueAsBytes(node);\n        } catch (Throwable t) {\n            throw new RuntimeException(String.format(\"Could not serialize row '%s'.\", row), t);\n        }\n    }\n\n    @Override\n    public boolean equals(Object o) {\n        if (this == o) {\n            return true;\n        }\n        if (o == null || getClass() != o.getClass()) {\n            return false;\n        }\n        JsonRowDataSerializationSchema that = (JsonRowDataSerializationSchema) o;\n        return rowType.equals(that.rowType)\n                && timestampFormat.equals(that.timestampFormat)\n                && mapNullKeyMode.equals(that.mapNullKeyMode)\n                && mapNullKeyLiteral.equals(that.mapNullKeyLiteral)\n                && encodeDecimalAsPlainNumber == that.encodeDecimalAsPlainNumber\n                && ignoreNullFields == that.ignoreNullFields;","sourceCodeStart":101,"sourceCodeEnd":137,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowDataSerializationSchema.java#L101-L137","documentation":"Error \"Could not serialize row '%s'.\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Could not serialize row 'the reported value'.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Could not serialize row 'the reported value'.","solutions":["Address the cause reported by the error message: Could not serialize row 'the reported value'.","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Could not serialize row 'the reported value'.\") and rerun the job or command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}