Page last modified 21:36, 22 Jun 2015 by VeeKhong

cvc-datatype-valid-1-2-1

    Table of contents

     

    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: http://www.w3.org/TR/2006/WD-xmlschema11-2-20060217/datatypes.html#cvc-datatype-valid

    Possible causes for this error:

    • Field value is not the type which is defined for the element. For example a text value is used when field type is defined as decimal.

     

    An example

    <CtrlSum>s</CtrlSum>

     

     

    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.

    <CtrlSum>100</CtrlSum>

     

     

    An example of Date/Time

    Valid formats for xs:dateTime are e.g.:

    2002-05-30T09:00:00
    2002-05-30T09:30:10.5
    2002-05-30T09:30:10Z
    2002-05-30T09:30:10+06:00

    Menu