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 / Sequential value is gi...
Power Apps
Unanswered

Sequential value is giving duplicate results before submit form

(0) ShareShare
ReportReport
Posted on by

I have a sequential value field (named Inventory Code) in SharePoint list and a Category Field(named Line of Business) which is a choice column. I have used the formula in Inventory Value field in such a way that when I select a category from drop down, the inventory Code will increment accordingly.

 

Concatenate("0000",Coalesce(ThisItem.Inventory Code,Value(LookUp(Sort('Inventory List',ID,SortOrder.Descending),'Line of Business'.Value=DataCardValue8.Selected.Value).Inventory Code+1)))

 

Now the issue is when user XYZ select one Category from drop down it generates Inventory Code before submitting the form. At the same time if user ABC has selected same category in his browser he is also getting same Inventory Code. 

Now when they both submit the data, the Inventory Code is getting duplicated which should not happen as the code should be unique

Note: I have unselected "Enforce unique values" in SharePoint from Inventory Code field as I have to generate values based on Category Field(Line of Business)

 

 

PowerApps screenshot.png
I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    SharePoint isn't really great on this one. Enforce Unique is really the only way for it to do sequential numbering so if you can't use it then you have to do some workarounds.

     

    I would suggest you start simple. Assuming that

    1. this doesn't happen very often, and \
    2. that "sequential" does not mean "it is mission critical that we track millisecond differences in transaction timing"

    ...then what you could do here is just make a Flow that triggers every time one of these List Items is created. It then checks to see if there are any duplicate numbers out there, and if so, it just increments this number by 1. Easy, fast, and solid.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard