Local Government Information 10.1 Script Error

1850
1
11-02-2012 09:16 AM
Labels (1)
JustinNgan
New Contributor II
Hello,

I am trying to import the 10.1 xml version of the Information model into a Geodatabase. I am receiving an error. Can someone please help?

Messages
Executing: ImportUsingGeoprocessing "C:\Documents and Settings\cs003019\Desktop\LocalGovernment.xml" H:\GIS_DATA\LGM.gdb "Database Connections\ESRI_SDE.sde\Mercator.DBO.BASE_FEATURE_250k\Mercator.DBO.MUNICIPAL_DISTRICT_2012" true false false true false
Start Time: Fri Nov 02 10:18:30 2012
Running script ImportUsingGeoprocessing...
Using Geodatabase:H:\GIS_DATA\LGM.gdb
968 Domains
Creating Domain for YesNo
Yes:Yes
No:No
Creating Domain for luViolationType
Blight:Blight
Grass/Weeds:Grass/Weeds
Illegal Sign:Illegal Sign
Illegal Storage of RV:Illegal Storage of RV
Inoperable Vehicle:Inoperable Vehicle
:
:
:
Anabranch:Anabranch
Arch:Arch
Archipelago:Archipelago
GeoProcessing Error Messages:


Python Error messages:
Traceback Info:
  File "C:\Documents and Settings\cs003019\Application Data\ESRI\Desktop10.1\ArcToolbox\My Toolboxes\ImportUsingGeoprocessing.py", line 90, in main
    createDomain(domain)

  File "C:\Documents and Settings\cs003019\Application Data\ESRI\Desktop10.1\ArcToolbox\My Toolboxes\ImportUsingGeoprocessing.py", line 216, in createDomain
    createCodedValues(dName,codedValues)

  File "C:\Documents and Settings\cs003019\Application Data\ESRI\Desktop10.1\ArcToolbox\My Toolboxes\ImportUsingGeoprocessing.py", line 356, in createCodedValues
    cvCode = getElementValue(codedValue,"Code")

  File "C:\Documents and Settings\cs003019\Application Data\ESRI\Desktop10.1\ArcToolbox\My Toolboxes\ImportUsingGeoprocessing.py", line 711, in getElementValue
    data = getDataText(elem[0])

  File "C:\Documents and Settings\cs003019\Application Data\ESRI\Desktop10.1\ArcToolbox\My Toolboxes\ImportUsingGeoprocessing.py", line 631, in getDataText
    if str(s) == "null":


Error Info:
    <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\xea' in position 2: ordinal not in range(128)

Completed script ImportUsingGeoprocessing...
Failed to execute (ImportUsingGeoprocessing).
Failed at Fri Nov 02 11:01:44 2012 (Elapsed Time: 43 minutes 14 seconds)
0 Kudos
1 Reply
SteveGrise
New Contributor III
Does it work with just "Import to Geodatabase"? It will run a lot faster.

Without looking at the Xml it is hard to say why there is a problem. My guess is there is an issue in one of the domain coded values, "\xea" is usually a string value for e with a caret on top of it...

Take a look at the value after "Archipelago" and see if there is some unusual text in it.

Steve
0 Kudos