cvc-id.2

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-id.2: There are multiple occurrences of ID value ''{0}''.

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

Possible causes for this error:

  • There are elements in the schema with attributes containing IDREF ("xsd:IDREF") and ID ("xsd:ID") definitions. This means that for every IDREF-type element there must be a matching ID-type element. ID-values are unique. This could possibly require access to the schema to see what elements should be matched.

An example

<amenity>
    <amenityID>ID000000</amenityID>
    <amenityType>String</amenityType>
  </amenity>
  <amenity>
    <amenityID>ID000000</amenityID>
    <amenityType>String</amenityType>
  </amenity>

Error message: Error cvc-id.2: There are multiple occurrences of ID value 'ID000000'.

How to fix: ID-values must be unique so no duplicates are allowed. The error can be corrected by checking that there are no duplicate values.

<amenity>
    <amenityID>ID000000</amenityID>
    <amenityType>String</amenityType>
  </amenity>
  <amenity>
    <amenityID>ID000001</amenityID>
    <amenityType>String</amenityType>
  </amenity>