Page last modified 12:20, 2 Apr 2014 by juhako

cvc-attribute-3

    Table of contents
    No headers

     

    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-attribute.3: The value ''{2}'' of attribute ''{1}'' on element ''{0}'' is not valid with respect to its type, ''{3}''.

    Error description in schema standard: http://www.w3.org/TR/2007/WD-xmlsche...#cvc-attribute

    Possible causes for this error:

    • Attribute type restricts its valid values to a set of enumerated values, but a value not  listed in the schema restriction is used. For example, for attribute "LanguageCode" there may be 3 possible values: "FI", "EN", "SE", but the value "DE" is used, causing this error to trigger.
    • Attribute type restricts its valid values to follow certain pattern, but a value which is not conforming is used. For example pattern "[0-9]{1}" is defined in the schema, but alpahabetical value is given as a value for the attribute.

     

    An example

    <InstdAmt Ccy="EURO">3.14159</InstdAmt>

     

     

    Error message: Error cvc-attribute.3: The value 'EURO' of attribute 'Ccy' on element 'InstdAmt' is not valid with respect to its type, 'ActiveOrHistoricCurrencyCode'.

    How to fix: The reason for this error can be found out by examining the definition of 'ActiveOrHistoricCurrencyCode' from the schema definition and fixing the value of 'Ccy' to be valid against the definition. In this example the value of Ccy must be defined with three characters:

    <InstdAmt Ccy="EUR">3.14159</InstdAmt> 
    Menu