{"record":{"id":"08e8244d9e0ae968","repo":"apache/flink","slug":"malformed-input-partial-character-at-end-08e824","errorCode":null,"errorMessage":"malformed input: partial character at end","messagePattern":"malformed input: partial character at end","errorType":"exception","errorClass":"UTFDataFormatException","httpStatus":null,"severity":"error","filePath":"flink-core/src/main/java/org/apache/flink/types/Record.java","lineNumber":1495,"sourceCode":"                switch (c >> 4) {\n                    case 0:\n                    case 1:\n                    case 2:\n                    case 3:\n                    case 4:\n                    case 5:\n                    case 6:\n                    case 7:\n                        /* 0xxxxxxx */\n                        count++;\n                        chararr[chararr_count++] = (char) c;\n                        break;\n                    case 12:\n                    case 13:\n                        /* 110x xxxx 10xx xxxx */\n                        count += 2;\n                        if (count > utflen) {\n                            throw new UTFDataFormatException(\n                                    \"malformed input: partial character at end\");\n                        }\n                        char2 = (int) bytearr[count - 1];\n                        if ((char2 & 0xC0) != 0x80) {\n                            throw new UTFDataFormatException(\n                                    \"malformed input around byte \" + count);\n                        }\n                        chararr[chararr_count++] = (char) (((c & 0x1F) << 6) | (char2 & 0x3F));\n                        break;\n                    case 14:\n                        /* 1110 xxxx 10xx xxxx 10xx xxxx */\n                        count += 3;\n                        if (count > utflen) {\n                            throw new UTFDataFormatException(\n                                    \"malformed input: partial character at end\");\n                        }\n                        char2 = (int) bytearr[count - 2];\n                        char3 = (int) bytearr[count - 1];","sourceCodeStart":1477,"sourceCodeEnd":1513,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-core/src/main/java/org/apache/flink/types/Record.java#L1477-L1513","documentation":"Error \"malformed input: partial character at end\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: malformed input: partial character at end.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: malformed input: partial character at end.","solutions":["Address the cause reported by the error message: malformed input: partial character at end","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"malformed input: partial character at end\") 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"}