Hi,
I am using Arcgis pro notebook for geocoding XY coordinations. While I can do it with "Display XY data" function (by right clicking the layer in the content panel), I cannot do it with a very simple code in the notebook.
The code and output are copied here.
Nothing has been created, either the table or the point shape file.
Can anyone help? Thank you very much in advance.
------ code ---------
arcpy.env.workspace = r"c:\WORK\GIS\OUTPUT.gdb"
# Set the local variables
in_folder = r"c:\WORK\GIS\PED_MOVE\flow_age_ymd_202006_sample.csv"
x_coords = "X_COORD"
y_coords = "Y_COORD"
z_coords = ""
out_fc = "flow_age_ymd_202006_sample"
arcpy.management.XYTableToPoint(in_folder, out_fc, x_coords, y_coords, z_coords, arcpy.SpatialReference("Korea Geodetic Datum 2000"))
----------------
Output
c:\WORK\GIS\OUTPUT.gdb\flow_age_ymd_202006_sample
Messages
Start Time: XXX
WARNING 100160: Some of the features have invalid geometry and have been removed from the result
WARNING 000192: Invalid value for rows: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49
Succeeded at XXX (Elapsed Time: 1.79 seconds)