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
Hithesh SaicharanHithesh Saicharan 

Autonumber field postmigration issue

As we know that Autonumber field in standard object cannot be packaged. So Before creating package I converted the Autonumber to Text field and after installation in a scracth org I tried to change the Field type of that field but I am not able to do that. Even I cant delete that field.I am getting this Error 
This Custom Field Definition is managed, meaning that you may only edit certain attributes.

 Is there a way we can achieve this in post installation step? or any other workaround.
SwethaSwetha (Salesforce Developers) 
HI Hithesh,
As suggested in https://salesforce.stackexchange.com/questions/4793/added-auto-number-field-in-managed-package-how-to-generate-values-for-existing it is not possible to add auto-number fields after a managed package is released. Outside of managed packages, it is possible by switching the field to a text field, but this isn't possible in a managed context.

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you