Error map
Input string was not in a correct format System.FormatException: Input string was not in a correct format
.NET · layer 4, Application & API
Centre: this error. First ring: errors it is linked with (7). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (7)
System.InvalidCastException: Unable to cast object of type 'X' to type 'Y'
An explicit cast failed because the object’s runtime type isn’t the target type.
RangeError: Invalid time value
A Date is invalid (NaN), and toISOString() or a formatting library couldn’t format it.
java.lang.NumberFormatException: For input string: "x"
A string couldn’t be parsed as a number — it’s empty, has spaces/commas, is too large, or isn’t numeric.
ValueError: invalid literal for int() with base 10: 'abc'
int() received a string that isn’t a whole number — empty, decimal, whitespace or text.
java.util.InputMismatchException (Scanner)
Scanner.nextInt()/nextDouble() read a token that isn’t that type.
java.time.format.DateTimeParseException: Text '31/12/2024' could not be parsed at index 2
A java.time parse call got text that doesn’t match the expected format.
java.text.ParseException: Unparseable date: "x"
SimpleDateFormat couldn’t parse the string with its pattern.
Two steps away (18)
AttributeError: 'X' object has no attribute 'y'
You accessed an attribute or method that doesn’t exist on that object type.
java.lang.ClassCastException: class A cannot be cast to class B
An object was cast to a type it isn’t.
java.lang.IllegalArgumentException
A method rejected an argument value as invalid.
MySQL ERROR 1292 (22007): Incorrect datetime value: 'x' for column 'y'
A string couldn’t be converted to DATE/DATETIME — wrong format, empty string, or a zero date in strict mode.
ERROR: date/time field value out of range: "31/12/2024" — HINT: Perhaps you need a different "datestyle" setting.
PostgreSQL parsed a date in the wrong order (DMY vs MDY) or got an impossible value.
API Error: Invalid date format — expected ISO 8601 (YYYY-MM-DDTHH:mm:ssZ)
A date or timestamp in the request isn’t in the format the API expects — usually ISO 8601 with a time zone, or a Unix timestamp.
HTTP 422 Unprocessable Content
The request is well-formed, but the data fails validation (e.g. invalid email, missing required field).
KeyError: 'x'
You accessed a dictionary key that doesn’t exist.
java.lang.NullPointerException
Code called a method or accessed a field on a reference that is `null`.
TypeError: unsupported operand type(s) for +: 'int' and 'str'
An operator was used between two incompatible types, such as adding a number to a string.
java.lang.ArithmeticException: / by zero
Integer division or modulo by zero.
java.nio.file.AccessDeniedException: /path
The OS denied a file operation to the Java process.
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
The JSON shape doesn't match the model: an object arrived where a list was expected.
Dates mixed up: dd/mm/yyyy vs mm/dd/yyyy, ISO 8601 recommended
A date string like 03/04/2026 is read as March 4th or April 3rd depending on locale, so rows get wrong dates or conversion errors.
ORA-01843: not a valid month
A date string couldn't be parsed because the month part doesn't match the expected format.
ORA-01861: literal does not match format string
A date/time string doesn't exactly match the format mask used to parse it.
openssl verify error:num=9:certificate is not yet valid
The certificate's notBefore date is in the future from the verifier's point of view.
kotlinx.serialization.MissingFieldException: Field 'id' is required for type with serial name 'com.example.User', but it was missing
A required property wasn't present in the JSON being decoded.