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

cvc-complex-type-2-4-d

    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-complex-type.2.4.d: Invalid content was found starting with element ''{0}''. No child element is expected at this point.

    Error description in schema standard: http://www.w3.org/TR/2007/WD-xmlschema11-1-20070830/#cvc-complex-type

    Possible causes for this error:

    • Schema restricts child elements to a choice between two elements but both elements are used.

     

    An example

    <InitgPty>
       <Id>
          <OrgId>
             <BICOrBEI>BKAUATWW</BICOrBEI>
          </OrgId>
          <PrvtId>
             <Othr>
                <Id>TEST</Id>
             </Othr>
          </PrvtId>
       </Id>
    </InitgPty>

     

     

     

     

     

     

     

     

     

     

    Error message: Error cvc-complex-type.2.4.d: Invalid content was found starting with element 'PrvtId'. No child element is expected at this point.

    How to fix: This issue can be fixed by removing the other element under 'Id' and using only one child 'OrgId' or 'PrvtId'.

    <InitgPty>
       <Id>
          <PrvtId>
            <Othr>
             <Id>TEST</Id>
            </Othr>
          </PrvtId>
       </Id>
    </InitgPty>

     
    Menu