web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Purpose of AutoIncreme...
Power Apps
Unanswered

Purpose of AutoIncrement field in dataverse?

(0) ShareShare
ReportReport
Posted on by 51

What is the purpose of the auto incrementing field?    It allows duplicates,  and may create string-numbers out of order, meaning a number created last week was AAA-1010   and one created just now might be AAA-900 , AAA-1010 or AAA-2015.

 

The term auto increment is generally defined as:  Auto-increment allows a unique number to be generated automatically when a new record is inserted into a table

 

This is not the behavior here, so I am curious why dataverse autoincrement was created.

I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    Here is the information about auto number columns - https://learn.microsoft.com/en-us/power-apps/maker/data-platform/autonumber-fields

    If you want to guarantee the uniqueness of the value in the field you might combine your auto number field with alternate keys - https://learn.microsoft.com/en-us/power-apps/developer/data-platform/define-alternate-keys-entity

  • FerrDiBarnes Profile Picture
    51 on at

    I see now that I read auto number to mean auto-incrementing, but MS calls it  auto number, "columns that automatically generate alphanumeric strings whenever they are created" .     But my question is why would you create an auto number field.    What use does it serve if it is not guaranteed to be unique or always incrementing?  

  • Verified answer
    Fubar Profile Picture
    8,344 Super User 2025 Season 2 on at

    You use them as often you need a human readable identifier for a record (if you don't need human readable you can use the guid of the record which is also unique)

     

    The sequence number that is generated is +1 every time a record is created for the Table that has the auto number and as such for a Table it is unique, except:

    • Someone has re-seeded the auto number, then the next record will start from that reseed and this can lead to duplicates if the reseed value was less than the current sequence number
    • Someone has left the field as editable and someone manually updates (or an automation updates) the field with a value that already exists (the sequence does not look at any updated values the sequence itself is managed out side the tables)

    As indicated in the earlier post you can force uniqueness by implementing an Alternate Key on the field.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard