{"record":{"id":"3c1d1f1c5da8871c","repo":"apache/flink","slug":"invalid-type-for-items-property-in-node","errorCode":null,"errorMessage":"Invalid type for 'items' property in node: {}","messagePattern":"Invalid type for 'items' property in node: (.+?)","errorType":"validation","errorClass":"java.lang.IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowSchemaConverter.java","lineNumber":307,"sourceCode":"            final TypeInformation<?> elementType = convertType(location + '/' + ITEMS, items, root);\n            // result type might either be ObjectArrayTypeInfo or BasicArrayTypeInfo for Strings\n            return Types.OBJECT_ARRAY(elementType);\n        }\n        // tuple (translated to row)\n        else if (items.isArray()) {\n            final TypeInformation<?>[] types = convertTypes(location + '/' + ITEMS, items, root);\n\n            // validate that array does not contain additional items\n            if (node.has(ADDITIONAL_ITEMS)\n                    && node.get(ADDITIONAL_ITEMS).isBoolean()\n                    && node.get(ADDITIONAL_ITEMS).asBoolean()) {\n                throw new IllegalArgumentException(\n                        \"An array tuple must not allow additional items in node: \" + location);\n            }\n\n            return Types.ROW(types);\n        }\n        throw new IllegalArgumentException(\n                \"Invalid type for '\" + ITEMS + \"' property in node: \" + location);\n    }\n\n    private static TypeInformation<?> convertStringFormat(String location, JsonNode node) {\n        if (!node.isTextual()) {\n            throw new IllegalArgumentException(\n                    \"Invalid '\" + FORMAT + \"' property in node: \" + location);\n        }\n\n        switch (node.asText()) {\n            case FORMAT_DATE:\n                return Types.SQL_DATE;\n            case FORMAT_TIME:\n                return Types.SQL_TIME;\n            case FORMAT_DATE_TIME:\n                return Types.SQL_TIMESTAMP;\n            default:\n                return Types.STRING; // unlikely that we will support other formats in the future","sourceCodeStart":289,"sourceCodeEnd":325,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowSchemaConverter.java#L289-L325","documentation":"Error \"Invalid type for 'items' property in node: {}\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Invalid type for 'items' property in node: the reported value.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Invalid type for 'items' property in node: the reported value.","solutions":["Address the cause reported by the error message: Invalid type for 'items' property in node: the reported value","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Invalid type for 'items' property in node: 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"}