Page last modified 12:55, 5 Aug 2013 by juhako

1824

    Table of contents
    No headers

    Version as of 07:13, 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:

    There are predefined values given or there are some limitations for the value of the element but the given value does not qualify. The same error may also occur if there is no value given, in other words the element is empty.

    More information of the error can be found out by checking the schema definition of the element in question.

    Example 1:

    The picture below shows an example of this type of error:

    ReqdExctnDtError.png

    From the error message you can see that value in the 'ReqdExctnDt' element is invalid. The value does not qualify with the definition of 'ISODate'. 'ISODate' is a defined in the schema in question which in this case is "pain.001.001.03.xsd" and so you need to examine the schema to find more information. The schema in this case express the following definition:

    <xs:simpleType name="ISODate">
        <xs:restriction base="xs:date"/>
    </xs:simpleType>
     
    xs:date in turn is defined in the XML standard as 'YYYY-MM-DD'. So the problem in this case can be fixed by adding the slashes into the date value: '2013-06-16'.
     

    Example 2:

    AnyBICIdentifierError.png

    In this case the error message tells us that "BANKBIC" is not valid value for BICOrBEI element. The type of BICOrBEI element is AnyBICIdentifier. The definition of AnyBICIdentifier can be found from the schema in question, which in this case is again pain.001.001.03.xsd:

    <xs:simpleType name="AnyBICIdentifier">
        <xs:restriction base="xs:string">
            <xs:pattern value="[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}"/>
        </xs:restriction>
    </xs:simpleType>
     

    From the definition pattern we can see that the length of the value should be 8 or 11 characters. Also allowed characters in different positions of the value can be seen from the pattern. Valid value according the to schema definition in this case could be for example "BANKBICC". 

     

    Explanation of the error message given by the validator:

    Element 'elem1': 'value' is not a valid value of the atomic type 'predefinedValuesOrLimitations'.

    Element elem1 is the element which has invalid value. Correct values are prefined or limited by predefinedValuesOrLimitations.

     

    Menu