Select to view content in your preferred language

Creating Point from XY Fails if not saving into project folder (

161
1
02-04-2025 02:16 PM
Labels (3)
NateLemoine
New Contributor

Hi,

I have a weird problem where Arc will not convert my csv into a shapefile unless I save it into my project folder. I import the csv, check the data types, and run Create Point from XY:

Input Table ozone.csv
Output Feature Class C:\Users\Arya\Documents\ozone.shp
X Field Site Longitude
Y Field Site Latitude
Z Field
Coordinate System 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.98315284119521E-09;0.001;0.001;IsHighPrecision

 

Traceback (most recent call last):
File "c:\program files\arcgis\pro\Resources\ArcToolbox\scripts\XYTableToPoint.py", line 285, in <module>
", ".join(empty_out_bounds)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\program files\arcgis\pro\Resources\ArcToolbox\scripts\XYTableToPoint.py", line 271, in xy_table_to_points
arcpy.AddIDMessage("WARNING", 1086, str(e).split("[")[1][:-1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 6549, in CopyFeatures
raise e
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 6540, in CopyFeatures
gp.CopyFeatures_management(
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 532, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
arcgisscripting.ExecuteError: ERROR 000210: Cannot create output C:\Users\Arya\Documents\ozone.shp
ERROR 000308: Invalid field type
Failed to execute (CopyFeatures).


Failed script XY Table To Point...
Failed to execute (XYTableToPoint).

 

 

But if I change the output to be stored within the project, it works fine:

Capture.PNG

0 Kudos
1 Reply
DavidPike
MVP Frequent Contributor

It's most likely not the case of saving into a Project, rather that saving as s shapefile .shp has an error, where saving as a Feature Class inside a File Geodatabase .gdb does not.

There are several structural differences to .shp and .gdb Feature Classes such as field name lengths, .shp does not contain topologies, global IDs, only basic field types supported, a 2Gb file size limit, domains, subtypes not supported etc.

If I were to guess, you may either have a file over 2Gb, or a Date field (.shp does not store datetime in a  single field - only Date)