Select to view content in your preferred language

XY to line strips all fields from table

711
2
11-20-2023 10:38 PM
Labels (1)
yoksa
by
Deactivated User

I've brought a csv into ArcMap successfully. I'm able to view the table and it shows all 60-ish fields. When I run the XY to Line process, the only fields in the newly created layer are OID, Shape*, x1, y2, x2, y2, and Shape_Length. x1, y1, x2, and y2 of course come from the csv table but those are the only fields from the table that are preserved. I've tried renaming all the fields with shorter names and no spaces but that didn't work. Can anyone tell me how to run XY to Line and preserve all of the fields from the table? Thanks.

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

In Pro there is a "preserve attributes" option in the tool

XY To Line (Data Management)—ArcGIS Pro | Documentation

if it isn't available in arcmap, is it possible to do a join if there is a common ID field (or any key field) ?


... sort of retired...
0 Kudos
JeffHouser
Frequent Contributor

Please refer to DanPatterson's Post and Solution.  If you're using ArcMap, make sure your *.csv includes an "ID" field.  Once the shape is created via XY to Line process, you can then join other data to the shape by the "ID" field.

~Jeff

0 Kudos