Give Sequential Numbers to a Field (Calculate Field Tool)

3240
1
12-03-2014 07:51 AM
MarkAccettulla
New Contributor

I am trying to assign a unique Id to a couple of data layers (I know that the FID and ObjectID are unique, but for purposes of future joining I need to assign the values and have them be editable).  I have never had to use Python before, so any help would be appreciated.  I attached a screenshot of what I have pieced together.  When I run the tool, it works, however it only goes by increments of 1 for the first hundred points.  After that, it goes up by 10, and will give ten points the same number (also attached a screenshot).  Can anybody help me revise my work?  This data set contains 33,000+ points, so only having a unique ID for the first hundred isn't very helpful.

0 Kudos
1 Reply
MarkAccettulla
New Contributor

@Sol Wuensch

Thank you for pointing out what I overlooked.  I had set the field type to double, precision 8 scale 38.  I added a long integer field, and it calculated correctly.  You are right, the expression was correct.

0 Kudos