X-ray Error

13396
36
Jump to solution
10-15-2012 09:42 AM
PatriciaMoehring
Occasional Contributor
Trying to export xml of one dataset and getting error -- "XML Export Datasets Error: Unable to cast COM object of type 'System._ComObject' to interfacet type 'ESRI.ArcGIS.Catalog.IGxObject'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{BDBBB3EB-D0B2-11D1-AED9-080009EC734B}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

I don't know what this means or why it isn't working. Seems like I'm doing exactly what Steve is doing in the video?

Any ideas?
36 Replies
SteveGrise
New Contributor III

Sure, if it was my data model I would write a script (xslt) that populates

the default value for Strings to No Information and the default values for

Integers to -999999 (or maybe just -9!).

Then I would also have a small (Xml, csv, or json) file that has

non-default values by feature class, subtype, and field. The script above

would use those values where they exist. That way you could just worry

about the exceptions.

I will also take a look at adding a check for the issues you encountered to

the X-Ray Validator. It would have made things easier!

0 Kudos
OvidioRivero
New Contributor III

Yes,  and error message that would say "inconsistency between field type and default value" and the feature class would have been priceless here.  Still I like this tool very much. 

0 Kudos
SteveGrise
New Contributor III

I made an update to the code. The result you needed from the validation is

attached. Also I attached an updated xslt file that can be placed in your

addin\xslt folder (i.e., a folder like

C:\Users\Steve\AppData\Local\ESRI\Desktop10.2\AssemblyCache\{AB7D758E-ACB2-4583-8E74-CC9234ADA719}\xslt).

The published download for the addin will take a bit longer to be updated.

0 Kudos
JavierPablos1
New Contributor III

Hello, I am experiencing problems when I try to open the UPDM.xml file for gas utilities with x-ray. The steps I followed are the following:

1-Select the xml file in the contents pane.

2-press the open xml button.

The following image shows the error which says it is not finding the file. I can´t really understand what is going on since the steps are quite straightforward. Any ideas? 

Thanks in advance.

0 Kudos
SteveGrise
New Contributor III

I'm not sure what the issue is offhand. Are you able to open another

simpler xml workspace document?

Also I can't tell from the info which version of the software you are

running, and if you have Excel installed. To me it looks like an issue with

the Excel install, which might also be complicated by non-English version

of Windows, I'm not sure.

There's a new version at

http://www.arcgis.com/home/item.html?id=9ea218ff575f4a5195e01a2cae03a0ae

that includes enhanced validation. I don't think that would address your

specific issue, but you might try that along with making sure that you can

do a basic export/import from a Geodatabase.

0 Kudos
JavierPablos1
New Contributor III

Thanks a lot Steve. I didn´t have Excel installed. Problem solved!

0 Kudos
AndresCastillo
MVP Regular Contributor

I had this error when clicking on a gdb, then changing the XML Workspace Document to a nonexistent directory:

xml export database error: exception from hresult: 0x8004216A

Failed to export <gdbName>.gdb

The directory must exist prior to running the "Export GDB to XML Workspace (Schema Only) tool:

This successfully exports and opens the xml in preparation for creating the .htm web file:

How To: Create a data dictionary of a file geodatabase using the X-Ray for ArcCatalog add-in

How To: Create a data dictionary of a file geodatabase using the X-Ray for ArcCatalog add-in 

0 Kudos