{"record":{"id":"efcb0d9a783787e8","repo":"apache/flink","slug":"error-creating-field-union-of-record-data-s","errorCode":null,"errorMessage":"Error creating field union of record data: %s","messagePattern":"Error creating field union of record data: (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"flink-core/src/main/java/org/apache/flink/types/Record.java","lineNumber":639,"sourceCode":"                    }\n\n                    // copy the remaining fields directly as binary\n                    if (begin != -1) {\n                        this.serializer.write(sourceForRemainder.binaryData, begin, end - begin);\n                    }\n\n                    // the lengths can be copied directly\n                    if (lengths != sourceForRemainder.lengths) {\n                        System.arraycopy(\n                                sourceForRemainder.lengths,\n                                minFields,\n                                lengths,\n                                minFields,\n                                maxFields - minFields);\n                    }\n                }\n            } catch (Exception ioex) {\n                throw new RuntimeException(\n                        \"Error creating field union of record data\" + ioex.getMessage() == null\n                                ? \".\"\n                                : \": \" + ioex.getMessage(),\n                        ioex);\n            }\n        } else {\n            // the general case, where at least one of the two records has a binary representation\n            // that is not in sync.\n            final int estimatedLength =\n                    (this.binaryLen > 0\n                                    ? this.binaryLen\n                                    : this.numFields * DEFAULT_FIELD_LEN_ESTIMATE)\n                            + (other.binaryLen > 0\n                                    ? other.binaryLen\n                                    : other.numFields * DEFAULT_FIELD_LEN_ESTIMATE);\n            this.serializer.memory =\n                    (this.switchBuffer != null && this.switchBuffer.length >= estimatedLength)\n                            ? this.switchBuffer","sourceCodeStart":621,"sourceCodeEnd":657,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-core/src/main/java/org/apache/flink/types/Record.java#L621-L657","documentation":"Error \"Error creating field union of record data: %s\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Error creating field union of record data: the reported value.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Error creating field union of record data: the reported value.","solutions":["Address the cause reported by the error message: Error creating field union of record data: the reported value","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Error creating field union of record data: 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"}