Page last modified 07:56, 6 Aug 2013 by juhako

1866

    Table of contents
    No headers

    Version as of 07:27, 27 Jun 2022

    to this version.

    Return to Version archive.

    View current version

    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.

    Example:

    1866.png

    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:simpleContent>
        <xs:extension base="ActiveOrHistoricCurrencyAndAmount_SimpleType">
          <xs:attribute name="Ccy" type="ActiveOrHistoricCurrencyCode" use="required"/>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
     
    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.

    Menu