Questions tagged [autoincrement]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
3answers
113 views

Generating unique code for features via grouping by several attributes

I have features with 3 columns of information ("material", "name", "dimension") in the Attribute table. I need these features to group - to create 4th column where ...
0
votes
0answers
37 views

Automatic increment stopped working

I have a SpatiaLite Layer in QGIS with an automatic increment. It worked well yesterday, counting the primary key without me doing anything about it. Today it has a problem and doesnt save. (error-...
0
votes
0answers
50 views

QGIS autoincrementing primary key, unique constraint error

We changed our format for our layers from GPKG to SpatiaLite. A few Layers made some problems with an unique constraint error. Funny thing, saving them as SpatiaLite again did the job most of the time....
1
vote
0answers
32 views

Adding an incrementor in CalculateField_managment() expression

I am trying to recalculate a value for a field using arcpy.CalculateField_management() using a tricky expression. Currently, I am recalculating one field named REACH_ID, using another field ('CO_FIPS')...
9
votes
2answers
189 views

Adding auto incremented value to existing ID

I am having a table where two columns are "ID" and "maintenance_ID". The "ID" column is unchangeable and comes from another table but the "maintenance_ID" is ...
0
votes
1answer
98 views

Auto Increment Only Specific Features?

I'm using QField to collect geologic data in the Outback. I'm creating point data, with various fields for rock type etc. Occasionally I take samples of the rocks, and want a field that auto-...
3
votes
1answer
67 views

Group by 2 fields in “Add autoincremental field” in QGIS Modeler

I'm creating a model in Modeler in QGIS3.4. I want to use a "Add autoincremental field" tool. I want to group my field by two other fields (it works when I set it "normally", not in Modeler). I think ...
0
votes
0answers
22 views

AutoIncrement based on Field Value [duplicate]

Is there any way to automatically restart the AutoIncrement () function based on the Field Value on ArcMap? I am developing a model in ModelBuilder to name parcels automatically. The polygons are ...
1
vote
1answer
117 views

Using Attribute Assistant's Autonumber or GenerateID tools in a versioned environment

Is there a workaround for using Esri's Attribute Assistant's Autonumber or GenerateID in a versioned environment without creating duplicates? re: Attribute Assistant and Versioning could Python ...
-1
votes
1answer
27 views

Auto incrementing start form the second row and every second row in ArcGIS Desktop? [closed]

Subsequent to Auto incrementing every second row in ArcGIS Desktop? , how can i start the auto increment from the second field (i work with 150 fields) so the result will be:
1
vote
1answer
39 views

Auto incrementing every second row in ArcGIS Desktop?

How do I auto increment every second row (field type is short and I work with 150 fields) in ArcGIS Desktop 10.3.1? I saw this code in https://support.esri.com/en/technical-article/000011137 rec=0 ...
0
votes
1answer
838 views

How to create sequential numbers in a field by defining automatically the start, end and interval numbers?

I would like to create sequential numbers in a field called "virtual _Li". I have used the field calculator using def autoincrement() function and manually calculate the interval number. https://...
0
votes
0answers
103 views

How to add row number based on distinct attribute value in QGIS (version 2.18.13)? [duplicate]

I have several layers (shapefiles) that have data in groups. Each group has a distinct group name. I am trying to number each item in the layer based on its distinct group name. So, for each group ...