Solved! Go to Solution.
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!
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.
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.
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.
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.
Thanks a lot Steve. I didn´t have Excel installed. Problem solved!
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