Hi Sridatta,
Autonumber works that way, it will be increased by 1 every time you create a object. When ever you open NewEdit page it will automatically create a object. but without commit alos you create a object.
To resolve this issue, Use non-persistent entity to validate the object and once it is validated then create object with persistent entity of same object. This way, Autonumber only increased for commited objects.
Hi Jilla,
Even though it may sound confusing, this is indeed the normal behaviour for a AutoNumber value. Every time an object is created, the AutoNumber value will increase by 1. So this happens during the creation of an object, not during the commit action. So even though you cancel your changes, it will still increase the AutoNumber next time you create a new object.
So if you would like to get sequential numbers/id's, the AutoNumber isn't the way to go.
Hope this clears things up for you.