13 Replies Latest reply on May 22, 2012 8:41 AM by Stephen266505

    Location of a Geodatabase XML Schema Document?

    geonetadmin
      Original User: tomlind

      Hi,

      we are trying out the Sparx Enterprise Architect ArcGIS module, and are having problems to import xml-files generated by EA in ArcCatalog 10 sp3 (parsing error). We are contacting sparx support. Meanwhile we would like to validate the XML-files against a ESRI Geodatabase schema-document but cannot loacate such a schema. The xml-files generated by ArcCatalog and EA both contains

      <esri:Workspace xmlns:esri="http://www.esri.com/schemas/ArcGIS/10.0"...

      but no schemalocation is provided.

      Does anyone know if an "official" ESRI Geodatabase schema is published, and where?

      Thanks
      Tomas
        • Re: Location of a Geodatabase XML Schema Document?
          geonetadmin
          Original User: danielDNL

          Hi,

          I have more or less the same problem with importing an xml file to the geodatabase (through the ArcCatalog 10)
          Every time when I specify the location of my xml file it'll give an error:

          Import xml data failed
          FDO error: -2147186428 [XML parse error: Unspecified error
          [Line: 364, column: 23].]
          No object found in this collection      

          {translation from polish}

          Moreover Im following the official tutorial (http://www.sparxsystems.com/resources/demos/arcgis/arcgis-ea-intro.htm)
          and I get the same error..
          I have no idea what could be wrong.
          Someone knows?

          Regards,

          Daniel S.
          • Re: Location of a Geodatabase XML Schema Document?
            sparxesri
            Hi Tomas and Daniel,

            Did you manage to get this issue resolved?

            I think there's been a couple of releases of the ArcGIS profile for Enterprise Architect since you first posted here. It may be worth retrying with the latest release (9.3 Build 931). The updated pdf tutorial might be of help as well (http://www.sparxsystems.com/bin/arcgis-enterprise-architect-uml-modeling-tutorial.pdf).

            Either way let us know how it went, and we'll try post a solution for others that may have encountered this problem.

            Ben
            • Re: Location of a Geodatabase XML Schema Document?
              oemem
              Hi Tomas and Daniel,

              Did you manage to get this issue resolved?

              I think there's been a couple of releases of the ArcGIS profile for Enterprise Architect since you first posted here. It may be worth retrying with the latest release (9.3 Build 931). The updated pdf tutorial might be of help as well (http://www.sparxsystems.com/bin/arcgis-enterprise-architect-uml-modeling-tutorial.pdf).

              Either way let us know how it went, and we'll try post a solution for others that may have encountered this problem.

              Ben


              i downloaded that version and having "type mismatch" error when tried to import xml file.
              • Re: Location of a Geodatabase XML Schema Document?
                geonetadmin
                Original User: sparxesri

                A further update regarding the original parsing errors: One possible cause of this error is forgetting to set the spatial reference value on a feature dataset. It is explained on pages 13 and 14 of the tutorial:
                http://http://www.sparxsystems.com/bin/arcgis-enterprise-architect-uml-modeling-tutorial.pdf

                It seems like an easy setting to forget, so I'm hopeful that we'll catch this kind of thing in future via a model validation routine prior to export...

                Daniel, Tomas, or anyone else: If you're able to confirm that this worked for you using the EA 9.3, Build 931 or later that would be great.

                Ozan: If you could send the sample model and generated output to Sparx Support that would be great. You can send it via:
                (for registered users) http://www.sparxsystems.com/registered/reg_bug_report.html

                Or

                (for trial users) http://www.sparxsystems.com/bug_report.htm

                The type mismatch seems to be a different error. One cause of it that we have seen is an empty WKID value in the generated workspace from ArcDiagrammer then importing and re-exporting from EA. There are likely other reasons though.

                I hope this helps

                Ben
                • Re: Location of a Geodatabase XML Schema Document?
                  Stephen266505
                  I'm trying to get the Sparx Enterprise Architect extension working as well, using EA 9.3.932, ArcGIS 10.0/3200, Win 7 64 Bit.
                  I import a geodatabase xml file, and that works just great. Then I try to expor the same model to XML (Extensions/ArcGIS/Export to ArcGIS XML workspace), and the proces gets to XMI Document Export Complete, then stops (green bar at about 75%), and evenutally get EA-UML Deveolopment Tool Has stopped working (Error alert from Windows, 'Windows is checking for solution to problem', then 'a problem scaused the program to stop working correctly...' Close Program')
                  If I view the xml in the export window, I see a valid-looking XMI file, and it also generates an XMI file at the export location, but of course an ArcGIS workspace XML is not an XMI. Looks to me like there's supposed to be an XSLT to convert the XMI export to the ArcGIS workspace XML and that's where it's breaking.

                  Anyone else had any success with this?

                  steve
                  • Re: Location of a Geodatabase XML Schema Document?
                    geonetadmin
                    Original User: Stephen266505

                    I went through and checked all the ArcGIS properties (including SRS, Field stereotypes etc...) and got my new model to export from EA to generate what looks like proper ArcGIS workspace XML. Now when I try the ArcCatalog import, I'm getting the
                    "FDO error: -2147186428 [XML parse error: Unspecified error [Liine:3721, column:22].]"  The location is the closing bracket '>' on the closing </WorkspaceDefinition> element.  The workspace xml is XML-valid, but I didn't try to get the schema to check schema validation.


                    The ArcGIS workspace XML exported from EA is attached.

                    steve
                    • Re: Location of a Geodatabase XML Schema Document?
                      Stephen266505
                      got it to work.

                      The spatial reference was missing on the feature dataset
                      Also, in the EA model before export:
                      Assigned  dataset IDs to all the feature classes (and the feature dataset)
                      Rebuild feature classes strictly using the template tools. I had done some copying and pasting in the first iteration, reassigning polygon/polyline/point stereotypes.  This resulted (apparently) in the appearance of TaggedValues for some of the geodatabase properties instead of the properties all showing up in the ArcGIS heading for tagged values.

                      Not sure what the actual problem was
                      • Re: Location of a Geodatabase XML Schema Document?
                        geonetadmin
                        Original User: xie96

                        got it to work.

                        Also, in the EA model before export:
                        Assigned  dataset IDs to all the feature classes (and the feature dataset)


                        Great to hear that!

                        If you do not assigned DSID for every feature dataset or feature class, EA will automatically assign a random number for it.
                        • Re: Location of a Geodatabase XML Schema Document?
                          sparxesri

                          The spatial reference was missing on the feature dataset
                          ...
                          I had done some copying and pasting in the first iteration, reassigning polygon/polyline/point stereotypes.


                          Hi Stephen,

                          Setting the spatial reference info is a step I forget at least every second time I create an arcgis model. Fortunately, implementing an arcgis model validation routine is on Sparx's to do list, so we'll get a reminder in future...

                          Regarding the switch between feature class stereotypes, it's probably easier currently to create a new element of the desired stereotype and drag across whatever fields etc. you have in the old element. Otherwise there's a bit of manual tweaking of tagged values to get it right. It would be nice to have a conversion function say from the ArcGIS extension menu. Hopefully we'll see something like that in a future release.

                          Regards,
                          Ben
                          • Re: Location of a Geodatabase XML Schema Document?
                            geonetadmin
                            Original User: doveydee

                            Hi all,

                            Like several others in this thread, I am trying to import an EA generated xml doc into ArcGIS as per the EA tutorial.  I am using EA version 9.3.932 and ArcGIS (ArcCatalog) version 10.0 buil 2414.

                            I followed the EA tutorial (Modelling and ArcGIS geodatabase with UML and Enterprise Architect) verbatim, and after reading this thread, I made certain that the spatial references were added.

                            I exported the EA xml doc following the directions in the tutorial, created a new file geodatabase and attempted to import the xml doc into my new file geodatabase using the schema only option.  Like others in this thread, I got an error:
                            'Import xml data failed
                            FDO error: -2147186428 [XML parse error: Unspecified error [Line: 285,column:23].]"

                            I did not find a resolution to this error in the thread postings here.

                            Since I am following the tutorial, is there something that I am missing?

                            I have attached the xml doc that I generated from EA as a result of following the tutorial.  A resolution ASAP is truly appreciated.

                            Thanks,

                            DD
                            • Re: Location of a Geodatabase XML Schema Document?
                              rmoreno-telematica-com-pe-esridist
                              Hi All,
                              I have EA 9.3.935 and I have created a ArcGIS model. I exported this model and next I try to import with ArcCatalog 10.1 and I get "Import xml data failed" message. I supposse that EA 9.3.935 does not work with ArcGIS 10.1. If so which EA version should I have ?.    Thanks in advance.
                              • Re: Location of a Geodatabase XML Schema Document?
                                geonetadmin
                                Original User: sparxesri

                                This is a late follow-up to Rodolfo's post, but hopefully will be of help to others in the same situation...

                                The current version of Enterprise Architect is 10.0.1009. This works with ArcGIS 10.2 (and should be compatible with ArcGIS 10.1 and 10.0). I'd recommend using Enterprise Architect 10.0.1009 if possible.

                                Likely of interest to Rodolfo and others that posted to this thread is Enterprise Architect's model validation script for ArcGIS / UML models. The script and instructions are available from:
                                http://www.sparxsystems.com/arcgis/model-validation.html

                                It performs quite a detailed analysis of the modeled schema, starting from the Workspace package down. It will find the common modeling errors and report things like missing spatial references etc.

                                Also, look out for the next minor release of Enterprise Architect (10.0.1010). It will include numerous enhancements for ArcGIS modeling. The model validation capability will also be included in the installer, rather than requiring a script be separately downloaded.

                                Regards,
                                Ben