Book a Demo

Author Topic: Can't export geodatabase schema to .xml ArcGIS 10.3.1.  (Read 9880 times)

siriosus

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Can't export geodatabase schema to .xml ArcGIS 10.3.1.
« on: April 12, 2016, 11:18:12 pm »
Hi dear users and experts,

I faced with a problem in Enterprise Architect. I can't export workspace in form of xml schema for further import to geodatabase in ArcCatalog. This began after upgrade from ArcGIS Desktop 10.0 to 10.3.1. In 10.0 everything is still OK. I see "Writing ArcGIS Workspace Document, please wait..." in progress bar and nothing happening. .xml file actually has been created but it's impossible to import it to geodatabase with "WorkspaceDefenition not found" error. Version of Enterprise Architect is 12.0.1214 with database version 4.0.1.

Could you please suggest if ArcGIS 10.3.1 is compatible with Enterprise Architect 12?

Thanks!

siriosus

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Can't export geodatabase schema to .xml ArcGIS 10.3.1.
« Reply #1 on: April 13, 2016, 04:17:30 pm »
In addition. I've found that tehre is no option to chose what to generate XMI or XML. So with ArcGIS 10 installed it generates XML by default somehow with this header:
Code: [Select]
<?xml version="1.0"?>
<esri:Workspace xmlns:esri="http://www.esri.com/schemas/ArcGIS/10.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<WorkspaceDefinition xsi:type="esri:WorkspaceDefinition">
<WorkspaceType>esriLocalDatabaseWorkspace</WorkspaceType>
<Version/>
<Domains xsi:type="esri:ArrayOfDomain"/>
<DatasetDefinitions xsi:type="esri:ArrayOfDataElement">
<DataElement xsi:type="esri:DEFeatureDataset">
<CatalogPath>/FD=Features</CatalogPath>

But with 10.3.1 it generates xml with header like this:

Code: [Select]
<?xml version="1.0" encoding="windows-1252"?>
<xmi:XMI xmi:version="2.1" xmlns:uml="http://schema.omg.org/spec/UML/2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:ArcGIS="http://www.sparxsystems.com/profiles/ArcGIS/1.0">
<xmi:Documentation exporter="Enterprise Architect" exporterVersion="6.5"/>
<uml:Model xmi:type="uml:Model" name="EA_Model" visibility="public">

So my question is how to change this and choose XML workspace instead of XMI to be generated?

Thanks!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Can't export geodatabase schema to .xml ArcGIS 10.3.1.
« Reply #2 on: April 14, 2016, 09:06:13 am »
ArcGIS export is available from the Publish dialog. The standard XMI export dialog only offers formats that are used to round-trip with EA.

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Can't export geodatabase schema to .xml ArcGIS 10.3.1.
« Reply #3 on: May 04, 2016, 04:35:57 pm »
Hi siriosus,

Quote
I see "Writing ArcGIS Workspace Document, please wait..." in progress bar and nothing happening
I assume you initiated the export by selecting the Workspace package in EA's Project Browser and either using the menu Extensions > ArcGIS > Export to ArcGIS Workspace XML, or right-clicking and choosing Extensions > ArcGIS > Export to ArcGIS Workspace XML... Either way, when you export an ArcGIS geodatabase schema from EA, it should select Esri's Workspace XML format for you. (It's listed as "ArcGIS" in the XML Types list)

I have seen the same behaviour you described when the MSXML 4 library was not installed on the machine. This would sometimes happen for me on a new machine. It may also have occured on an old machine after uninstalling an application that somehow took MSXML 4 with it - I can't say for sure though.

In previous EA builds, if MSXML 4 couldn't be found, the exporter was not failing gracefully by looking for another compatible version, like MSXML 6, installed on the machine. The result would be a file generated as XMI with that second header you listed, whereas normally EA would transform that XMI content into Esri's XML Workspace format before finalizing the export. This issue was reported some time ago, and it's possibly been corrected in one of the EA releases since 12.0.1214. Are you able to download and install the latest version of EA to test this out?

In any case, I've corrected this in the past simply by installing MSXML 4. This might be an option if you can't try out the latest version of EA. There seems to be a free download of MSXML 4 from Microsoft here: https://www.microsoft.com/en-us/download/details.aspx?id=15697

Quote
Could you please suggest if ArcGIS 10.3.1 is compatible with Enterprise Architect 12?
Yes. I've been using ArcGIS 10.3.1 for a while now. Planning to update to to 10.4 soon.

I hope this helps.

Ben