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
aebenaeben 

Error when changing Name from Text to AutoNumber

Getting this error when changing I try to change the Name field from Text to AutoNumber.

 

Error: Cannot change Record Name type to autonumber; field update exists.

 

Any Ideas? Thanks in advance. 

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell
I would guess you have a workflow field update action that's updating the name, which it can't do if its changed to an autonumber field.

All Answers

SuperfellSuperfell
I would guess you have a workflow field update action that's updating the name, which it can't do if its changed to an autonumber field.
This was selected as the best answer
aebenaeben

Thats it!! Thanks.

 

Guess deactivating the Workflow is not enough. You have to delete the field update. 

raman vermaraman verma
I get the same error despite deactivating and deleting the workflow rule. Any Idea please?
Joel Cordes 2Joel Cordes 2
me too!
 
Vacation PlanterVacation Planter
Me too :(
Daniel Douglass 10Daniel Douglass 10
I had this issue as well. I deleted the field update from the WFR but that just deletes the link between the WFR and the field update so I was still getting the error. Go to Setup>Field Updates and find the Field Update and delete it from there.
Rajesh Yandrathi 1Rajesh Yandrathi 1
DeActivate the Workflow rule and also delete the field update used in the work flow for the particular field. Now we can change the data type to Auto Number