2

I am new to GIS(Arcpy)/Python programming , but I have experience in other languages. I have a question regarding the possibility to create a tool/script that does the following

-- Check a specific attribute field and see if there are any Duplicates (Our problem is that our DOC_ID field is supposed to be a unique value but some interns are accidently pasting/writing the same DOC_ID from a previous edit and saving it.

*The checking for duplicates is not that important as I have create a seconday field to check the data within the DOC_ID field to find duplicates*

-- Is it possible for the tool / script to be continuous. What i mean for this is that if a user accidently inputs a DOC_ID that is already within the list ... some kind of error or warning message would pop up saying that the "DOC_ID has already been used".

  ^(This is the main feature that I am trying to create or solve.) 

If this is not possible, are there any other paths that I should consider. (Validation Rules , etcetc)

This is not a big problem currently. There are only around 100-200 duplicate entries so far. We are trying to avoid the problem the best we can early once we start to implement more and more entries.

2
  • 1
    What data format are you using? ArcSDE, Personal/File geodatabase, shapefile, etc? Commented Dec 9, 2013 at 22:58
  • its a personal file/ geodatabase. Basically we have another "Untied" system that contains all our Unique Documents ID. We are plotting the locations out VIA ArcMap. Some interns have been accidently copy/pasting the same Unique Doc ID into the "DOC_ID" Field.
    – Will
    Commented Dec 10, 2013 at 20:28

1 Answer 1

2

You might be interested in the ArcGIS for Local Government Attribute Assistant add-in. It's a customizable editor extension that you could use to manage your unique ID field. It would need to be set up on each editor's machine.

The Attribute Assistant uses a series of predefined methods to automatically populate attributes when updating or adding new features to the geodatabase. For example, one method populates the full road name on each road centerline and site address feature from a valid list of road names contained in a master street name table. Other methods help you maintain the integrity of your address data by populating a unique identifier, last editor, and last update date on each feature.

Component                        Description
------------------------------------------------------------------------------------------
Attribute Assistant toolbar      Contains the tools to update the attributes of selected
                                 features based on the rules defined in the Generate ID
                                 table and Dynamic Value table

Generate ID table                Used to generate unique identifiers for features

Dynamic Value table              Contains rules defining how attributes are updated
1
  • This addon seems like it would do the trick. Once i have more time to fiddle around with it. I will come back with a response. Still new to ArcMap / GIS so still learning. haha. Thank you though!
    – Will
    Commented Dec 10, 2013 at 21:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.