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
SFDC Admin & AnalystSFDC Admin & Analyst 

Unable to create a new custom object with Auto number; Error Invalid number.

I am trying to create a new custom object Candidates with Auto number.

 

But when I give starting number: C-{00001}; It gives error Invalid number.

Also give some permissions warning. Please help.

 

 

 



Best Answer chosen by Admin (Salesforce Developers) 
Navatar_DbSupNavatar_DbSup

Hi,

 

Substitution Variables are Sequence number of one or more zeros enclosed in curly braces represent the sequence number itself, so you can't use integer Number other than Zero. For example CMT - {000000}

 

 Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

 

All Answers

raseshtcsraseshtcs

Could you please paste the screenshot of the error.

Navatar_DbSupNavatar_DbSup

Hi,

 

Substitution Variables are Sequence number of one or more zeros enclosed in curly braces represent the sequence number itself, so you can't use integer Number other than Zero. For example CMT - {000000}

 

 Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

 

This was selected as the best answer
hemantgarghemantgarg

Hi,

 

The in starting number please enter 00001 only, that should resolve it. 

DhanuDhanu

Me too went into the same situation and the problem got solved with your solution. Thank you for your help

najmnajm

Forgot to put the flower bracket

 

your number should look like
{}

 

enclose the number in flower bracket it should be fixed

MANU GOELMANU GOEL
Same here...the solution by @hemantgarg solved this for me too. Thanks much! But it is interesting as the error message was very generic and did not provide what could be done to avoid it.
Deborah WaidandeDeborah Waidande
thank you najm problem solved