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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / I have created a datav...
Power Apps
Unanswered

I have created a dataverse table and Primary key is duplicated somehow after someone inserted a record.

(0) ShareShare
ReportReport
Posted on by 280

I created a dataverse table and my primary key column is WSrvrTaskID. It is a Autonumber column and i loaded some data initially in this table. However you can see the second screenshot when user added a new record to this table it duplicated the primary key value and started with 1000 which and there was already a record i loaded whose primary key value is 1000. What do i do to make sure it assigns the next number in the column and is unique.

 

rohitsbots_2-1661481423658.png

 

rohitsbots_3-1661481613042.png

 

 

I have the same question (0)
  • Mahendar Pal Profile Picture
    191 on at

    Hi,

     

    I can think of two possibilities to have duplicate number:

    1. This field is editable and someone entered this value manually.

    2. Someone updated the seed value

    testauto.jpg

    You can make this field read only to avoid data entry to this field and in the second case make sure limited user have permission to do the customization, you can export these records and correct them manually and reimport to fix this issue. 

     

  • AhmedSalih Profile Picture
    6,680 Moderator on at

    Hello, @rohitsbots, you have to make sure that the Column that holds the Primary Key value is set as Alternate Key.

    Let me know is you need further instructions on how to set it up.

     

     


    If my reply helped you, please give a 👍, And if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


    Visit my Blog: www.powerplatformplace.com

     

  • PrashP Profile Picture
    2 on at

    You should change the seed value to Max of existing ID + 1. The seed value of an autonumber column is the starting number.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard