Hi Miray,
It's sometimes hard to prevent duplicates, but Mendix has introcued some features over the years to prevent it. Most important ones are:
Hello Miray Mutlu,
How time criticial is this ID, does the user need to know it immediately?
What you maybe can consider is using a TaskQueue, so all the commits of this entity are processed through this task queue.
More information about this you can find here:
https://docs.mendix.com/refguide/task-queue/
Hope this gives you some direction,
Good luck!
This should not be possible if you have a unique validation on the Task No attribute of the entity. This created a database constraint, so the database will ensure no duplicate values are allowed.