function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Yash Surana 15Yash Surana 15 

Auto Number field for a record name is skipped. How to prevent that?

Hi All,

I have a field for name on my custom object that is of auto number type, but what I see is some times after record creation some numbers are skipped inspite of "enable Independent Auto-Number Sequence" being enabled.
Want a resolution ASAP.
Khan AnasKhan Anas (Salesforce Developers) 
Hi Yash,

Greetings to you!

Please refer to the below knowledge article which might help you.

https://help.salesforce.com/articleView?id=000327616&type=1 (https://help.salesforce.com/articleView?id=000327616&type=1)

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Yash Surana 15Yash Surana 15
Hi Anas,

Greetings to your!
Thanks for your revert.
But the solution you provided is not feasible in our case as we cannot delete data.
We just need that auto number should always follow teh sequence be it anything.
Salesforce doesn't have any answer to it. SO, if you have anything else that can help, please let us know about that.

Thanks,
Yash Surana