Interactive I get:
Result Messages:
Executing: XYToLine \\somehost\GIS\geocode_test.gdb\Geocoding_Result_Model \\somehost\GIS\geocode_test.gdb\Geocoding_Result_Model_XYT LONGITUDE LATITUDE POINT_X POINT_Y GEODESIC scrssn_char "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 1111948722.22222;-100000 10000;-100000 10000;8.98315284119521E-09;0.001;0.001;IsHighPrecision"
Start Time: Fri Sep 13 13:02:03 2013
Succeeded at Fri Sep 13 13:02:04 2013 (Elapsed Time: 1.00 seconds)
In Model Builder I get:
Executing (XY To Line): XYToLine \\somehost\GIS\geocode_test.gdb\Geocoding_Result_Model \\somehost\GIS\geocode_test.gdb\Geocoding_Result_Model_XYT LONGITUDE LATITUDE POINT_X POINT_Y GEODESIC scrssn_char "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 1111948722.22222;-100000 10000;-100000 10000;8.98315284119521E-09;0.001;0.001;IsHighPrecision"
Start Time: Fri Sep 13 12:29:21 2013
Succeeded at Fri Sep 13 12:29:22 2013 (Elapsed Time: 1.00 seconds)
In python26 I get:
... setup ...
>>> # Process: XY To Line
... arcpy.XYToLine_management(Geocoding_Result_Model, Geocoding_Result_Model_XYT
, "LONGITUDE", "LATITUDE", "POINT_X", "POINT_Y", "GEODESIC", "scrssn_char", "GEO
GCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.25722356
3]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 1111948
722.22222;-100000 10000;-100000 10000;8.98315284119521E-09;0.001;0.001;IsHighPre
cision")
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "D:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", li
ne 2542, in XYToLine
raise e
arcgisscripting.ExecuteError: ERROR 000582: Error occurred during execution.
... rest of script...
However, it looks like the command executed fine, and the python script continues to execute "Add Field" and "Calculate Field", as it should, with valid results. (I have obfuscated the real path to the host in the text.)
So what's the error being reported here? Looks like an error that's not an error...