I have a feature class that has a unique id field. The field is populated using some basic code (using the Calculate Field tool in ArcGIS):
def CalcGUID():
import uuid
return'{'+str(uuid.uuid4()).upper()+'}'
When ever the feature class is updated, the unique id fields needs to be recalculated. This issue is that the feature class is associated with a stand alone attribute table and is related using the unique id field. How can the unique id fields in both files be recalculated while still maintaining the relationship?
This work was originally performed using FME and was a straight forward process. However, FME is no longer available to perform the updates. I have access to ArcGIS.
prev_id
to retain the previous value of the unique ID field and then recalculate so that you can still join/relate your tables as before.