Page last modified 16:49, 15 Oct 2013 by kari_admin


    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.


    Error Description:

    Invalid attribute on an element or a required namespace prefix missing on an attribute. Attribute name could also be mistyped.



    In this example an attribute called "ccy" is given for InstdAmt element. The error says the attribute is invalid. Further information on which attributes are allowed for the InstdAmt element can be found from schema, which in this case shows the following:

    <xs:element name="InstdAmt" type="ActiveOrHistoricCurrencyAndAmount"/>

    <xs:complexType name="ActiveOrHistoricCurrencyAndAmount">
        <xs:extension base="ActiveOrHistoricCurrencyAndAmount_SimpleType">
          <xs:attribute name="Ccy" type="ActiveOrHistoricCurrencyCode" use="required"/>
    So in this case the element is allowed and should have an attribute which should be called "Ccy". The error can be fixed by changing the original attribute "ccy" to "Ccy". As you can see the validation is case sensitivte.


    Explanation of the error message given by the validator:

    Element 'elem1', attribute 'att1'. The attribute 'att1' is not allowed.

    The attribute att1 given for element elem1 should not be there.