Esri / military-tools-geoprocessing-toolbox

military-tools-geoprocessing-toolbox is a collection of models, scripts, and tools for use in ArcGIS for Desktop and ArcGIS Pro. This toolbox is one component that is a part of Military Tools.
Apache License 2.0
33 stars 14 forks source link

Error message when running Convert Coordinates tool, but it still produces valid output #65

Closed JudTown17 closed 7 years ago

JudTown17 commented 8 years ago

The following error message is logged when running the Convert Coordinates tool in the Military Tools toolbox.

INFO: 2016-05-18 09:49:45,137 Running tool (Convert Coordinates)
ERROR: 2016-05-18 09:49:49,749 Executing: ConvertCoordinates "C:\Data\Defense Solutions\military-tools-geoprocessing-toolbox\testdata\MilitaryToolsTestData.gdb\SigActs" DD_2 Location_X Location_Y "C:\Data\Defense Solutions\military-tools-geoprocessing-toolbox\testdata\scratch.gdb\outputConvert" "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 1000000000;-100000 10000;-100000 10000;8.98315284119522E-09;0.001;0.001;IsHighPrecision"
Start Time: Wed May 18 09:49:45 2016
Executing (sourceCC): sourceCC "C:\Data\Defense Solutions\military-tools-geoprocessing-toolbox\testdata\MilitaryToolsTestData.gdb\SigActs" DD_2 Location_X Location_Y "C:\Data\Defense Solutions\military-tools-geoprocessing-toolbox\testdata\scratch.gdb\outputConvert" "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 1000000000;-100000 10000;-100000 10000;8.98315284119522E-09;0.001;0.001;IsHighPrecision"
Start Time: Wed May 18 09:49:45 2016
Running script sourceCC...
C:\Data\Defense Solutions\military-tools-geoprocessing-toolbox\testdata\MilitaryToolsTestData.gdb\SigActs
C:\Data\Defense Solutions\military-tools-geoprocessing-toolbox\testdata\scratch.gdb\outputConvert
Before Add Unique Row ID ...
PYTHON ERRORS:
Traceback info:
  File "C:\Data\Defense Solutions\military-tools-geoprocessing-toolbox\toolboxes\scripts\ConvertCoordinates.py", line 83, in <module>
    arcpy.AddUniqueRowID_mt(Output_Table, "JoinID")

Error Info:
'module' object has no attribute 'AddUniqueRowID_mt'
ArcPy ERRORS:
Executing: CopyRows "C:\Data\Defense Solutions\military-tools-geoprocessing-toolbox\testdata\MilitaryToolsTestData.gdb\SigActs" "C:\Data\Defense Solutions\military-tools-geoprocessing-toolbox\testdata\scratch.gdb\outputConvert" #
Start Time: Wed May 18 09:49:48 2016
Succeeded at Wed May 18 09:49:49 2016 (Elapsed Time: 0.78 seconds)

Completed script sourceCC...
Failed to execute (sourceCC).
Failed at Wed May 18 09:49:49 2016 (Elapsed Time: 3.62 seconds)
Failed to execute (ConvertCoordinates).
Failed at Wed May 18 09:49:49 2016 (Elapsed Time: 4.00 seconds)

Despite the error message, the tool still produces an output table and adds fields and values for the different coordinates as expected.

mfunk commented 7 years ago

Fixed in #146