KB Article #177226
An error occured during file conversion Reason : 'XXXX' is already defined
Problem
-- getting such error when importing a recursive schema in Mapping Services
An error occured during file conversion Reason : 'AN01Base' is already defined
-- similar error when validating the schema using XMLSPY:
The schema doesn't appear to be valid by itself (as a part of another schema, it might still be OK).
File E:\TMP\780075C9R1XML_-_COPIE\IATA_IS_XML_Standard_Base_Datatypes_V3.3.xsd is not valid.
'Base_Datatypes:AN01Base' is already declared in schema document 'http://www.iata.org/services/finance/sis/Documents/schemas/IATA_IS_XML_Standard_Base_Datatypes_V3.3.xsd'.
Error location: xs:schema / xs:simpleType
Details
sch-props-correct.2: 'Base_Datatypes:AN01Base' is already declared in schema document 'http://www.iata.org/services/finance/sis/Documents/schemas/IATA_IS_XML_Standard_Base_Datatypes_V3.3.xsd'
Resolution
* part of the schema is probably using relative path to imported schema and other part is using full path. The schema is then somehow invalid.
* look at the example below
In IATA_IS_XML_Standard_Custom_Dictionary_V3.3.xsd,
Replace
http://www.IATA.com/IATAAviationStandardDataTypes" schemaLocation="http://www.iata.org/services/finance/sis/Documents..."/>
by
http://www.IATA.com/IATAAviationStandardDataTypes" schemaLocation="IATA_IS_XML_Standard_Base_Datatypes_V3.3.xsd"/>
In IATA_IS_XML_Standard_Main_Dictionary_V3.3.xsd
Replace
http://www.IATA.com/IATAAviationStandardDataTypes" schemaLocation="http://www.iata.org/services/finance/sis/Documents..."/>
http://www.IATA.com/IATAAviationStandardCustomDict..." schemaLocation="http://www.iata.org/services/finance/sis/Documents..."/>
By
http://www.IATA.com/IATAAviationStandardDataTypes" schemaLocation="IATA_IS_XML_Standard_Base_Datatypes_V3.3.xsd"/>
http://www.IATA.com/IATAAviationStandardCustomDict..." schemaLocation="IATA_IS_XML_Standard_Custom_Dictionary_V3.3.xsd"/>
* once the schema has been modified, it can be imported in Mapping Services successfully