Notice! This page describes the nature of the error using a hypothetical example and not the erroneous data of the input test file. You should however be able to apply this information to your error case.

General description of the error:

The format of the error message: cvc-datatype-valid.1.2.1: ''{0}'' is not a valid value for ''{1}''.

Error description in schema standard:

Possible causes for this error:

  • Field value is not the type which is defined for the element. For example:
    • Text value is used when field type is defined as decimal.
    • Date format given for date/dateTime types (e.g. ReqdExctnDt/CreDtTm) is invalid, thus trigger a schema validation error

Example 1


Error message: Error cvc-datatype-valid.1.2.1: 's' is not a valid value for 'decimal'

How to fix: In this example a correct type value should be used by replacing text value with a decimal value.



Example 2


Error messageReqdExctnDt' value '2019-11-40' is not valid.

How to fix: Verifying date format is correct. Schema validation is checking that date is realistic, so error may be given if the given date is not possible in addtition to date  format being incorrect (e.g. not containing dashes to separate years, days and months)




Examples of valid dates and dateTimes

Valid formats for xs:date are yyyy-mm-dd;


Valid formats for xs:dateTime are similar to as for date but with time suffix, e.g.