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-datatype-valid.1.2.3: ''{0}'' is not a valid value of union type ''{1}''.
Error description in schema standard: http://www.w3.org/TR/2006/WD-xmlschema11-2-20060217/datatypes.html#cvc-datatype-valid
Possible causes for this error:
- An invalid value is given for element. Allowed values are defined in schema by using "union". The union element defines a simple type as a collection (union) of values from specified simple data types.
An example
<amenity>
<amenityID>ID000000</amenityID>
<amenityType>String</amenityType>
<dresssize>large1</dresssize>
</amenity>
Error message: Error cvc-datatype-valid.1.2.3: 'large1' is not a valid value of union type 'SizeType'.
How to fix: The error can be corrected looking up the schema definition for element having the erroneous value and using only the values that are allowed. In this case the schema restricts the allowed values.
Schema:
<xsd:simpleType name="SizeType">
<xsd:union memberTypes="DressSizeType">
<xsd:simpleType>
<xsd:restriction base="xsd:token">
<xsd:enumeration value="small"/>
<xsd:enumeration value="medium"/>
<xsd:enumeration value="large"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
<xsd:simpleType name="DressSizeType">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="2"/>
<xsd:maxInclusive value="18"/>
</xsd:restriction>
</xsd:simpleType>
This simply means that to correct this you must use values from collection ("small", "medium", "large") or from collection ("2", "18").
<amenity>
<amenityID>ID000000</amenityID>
<amenityType>String</amenityType>
<dresssize>large</dresssize>
</amenity>
OR
<amenity>
<amenityID>ID000000</amenityID>
<amenityType>String</amenityType>
<dresssize>2</dresssize>
</amenity>