[GIS] Keeping OID field when exporting to CSV

arcgis-desktopcsvexport

I imported a csv file and converted it to gdb format, and now I want to export it back to csv.

The file will be the exact same as before I imported it, except I want to keep the ArcMap generated OID.

However, when I export the file to csv, the OID field is lost, and contains null values only.

I understand why this is the case, because the OID is a temporary variable I guess.

Is there anything I can do to keep it though? Perhaps duplicate the field, but I am not sure how to do that in ArcMap.

Best Answer

If I understand you correctly, you want to keep the OID field. That should be simple, open attribute table, click on Add Field, name this new field for example OID_1, choose type (short integer or long integer for many features), and then use Field calculator.

enter image description here

The equation will be OID_1 = [OID]. After you click OK, it will copy OID values into OID_1. When the export is done, the field should be accessible.