{"record":{"id":"4621d5f6d6dc28a2","repo":"apache/cassandra","slug":"cannot-parse-udt-value-from-s-at-character-d-4621d5","errorCode":null,"errorMessage":"Cannot parse UDT value from \"%s\", at character %d expecting ':' but got '%c'","messagePattern":"Cannot parse UDT value from \"(.+?)\", at character (.+?) expecting ':' but got '%c'","errorType":"exception","errorClass":"InvalidTypeException","httpStatus":null,"severity":"error","filePath":"src/java/org/apache/cassandra/cql3/functions/types/TypeCodec.java","lineNumber":2689,"sourceCode":"                }\n                catch (IllegalArgumentException e)\n                {\n                    throw new InvalidTypeException(\n                    String.format(\n                    \"Cannot parse UDT value from \\\"%s\\\", cannot parse a CQL identifier at character %d\",\n                    value, idx),\n                    e);\n                }\n                String name = value.substring(idx, n);\n                idx = n;\n\n                if (!definition.contains(name))\n                    throw new InvalidTypeException(\n                    String.format(\"Unknown field %s in value \\\"%s\\\"\", name, value));\n\n                idx = ParseUtils.skipSpaces(value, idx);\n                if (value.charAt(idx++) != ':')\n                    throw new InvalidTypeException(\n                    String.format(\n                    \"Cannot parse UDT value from \\\"%s\\\", at character %d expecting ':' but got '%c'\",\n                    value, idx, value.charAt(idx)));\n                idx = ParseUtils.skipSpaces(value, idx);\n\n                try\n                {\n                    n = ParseUtils.skipCQLValue(value, idx);\n                }\n                catch (IllegalArgumentException e)\n                {\n                    throw new InvalidTypeException(\n                    String.format(\n                    \"Cannot parse UDT value from \\\"%s\\\", invalid CQL value at character %d\",\n                    value, idx),\n                    e);\n                }\n","sourceCodeStart":2671,"sourceCodeEnd":2707,"githubUrl":"https://github.com/apache/cassandra/blob/88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1/src/java/org/apache/cassandra/cql3/functions/types/TypeCodec.java#L2671-L2707","documentation":"InvalidTypeException from UDTCodec.parse: after a valid field name, the next non-space character is not the ':' separator between field name and value. The parser consumes the name then requires a colon; anything else (missing colon, wrong separator like '='), triggers this with the exact position and offending character.","triggerScenarios":"Thrown at src/java/org/apache/cassandra/cql3/functions/types/TypeCodec.java:2689 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Separate each field name and value with ':' as in {field: value}","Fix the character at the reported position","Avoid JSON-style formatting differences when pasting literals"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1","analyzedAt":"2026-09-10T07:29:22.284Z","contentChangedAt":"2026-09-10T07:29:22.284Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}