Troubleshooting
Problem
After importing the Oagis standard library, you might see the following errors:
Symptom
Severity and Description Path Resource Location Creation Time Id
XSD: The element may not have duplicate name and target namespace 'http://www.openapplications.org/oagis/9#SyncChartOfAccounts' Oagis/xsd-includes http.www.openapplications.org.oagis.9.xsd
line 1 1189870119625 11639
Severity and Description Path Resource Location Creation Time Id
XSD: The type may not have duplicate name and target namespace 'http://www.openapplications.org/oagis/9#SyncChartOfAccountsDataAreaType' Oagis/xsd-includes http.www.openapplications.org.oagis.9.xsd
line 1 1189870119625 11640
Severity and Description Path Resource Location Creation Time Id
XSD: The type may not have duplicate name and target namespace 'http://www.openapplications.org/oagis/9#SyncChartOfAccountsType' Oagis/xsd-includes http.www.openapplications.org.oagis.9.xsd
line 1 1189870119625 11641
Cause
These errors are being reported as the EMF / XSD is loading the same XSD twice because the Oagis/9.0/OAGIS-9_0.xsd has a typo.
On Windows® (case-insensitive/case-preserving), this typo allows the XSD to be loaded, but the EMF/XSD loads/compares URIs in a case-sensitive manner. This causes one resource to be loaded using the URI "BODs/Developer/SyncChartOfAccounts.xsd" and the xsd-includes/http.www.openapplications.org.oagis.9.xsd loads the URI "BODs/Developer/SyncChartofAccounts.xsd".
Resolving The Problem
To solve this problem, change line 393 (the word "Of" needs to be changed to "of", note the lower case 'o'):
- From:
- To:
<xs:include schemaLocation="BODs/Developer/SyncChartOfAccounts.xsd"/> |
<xs:include schemaLocation="BODs/Developer/SyncChartofAccounts.xsd"/> |
File: Oagis/9.0/Resources/OAGIS-9_0-Resources.xsd)
Change line 22:
- From:
- To:
<xs:import namespace="http://www.openapplications.org/oagis/9/codelists" schemaLocation="Components\Common\CodeLists.xsd"/> |
<xs:import namespace="http://www.openapplications.org/oagis/9/codelists" schemaLocation="Components/Common/CodeLists.xsd"/> |
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21291316