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
TheMythicalMoonTheMythicalMoon 

Deploy failed after change the field type of a custom object

Afte I change the field type of a custom object in the org then I do a refresh from server to get the xml of that object. But if I try to deploy the object with apex classes to another org, the build will fail and says you can not change the field type of object XXX which is used in XXX classes. Other than manually change the field type in the org I want to deploy to through the UI interface, is there any way I can complete the deploy? Thanks!
PragadheeshwariPragadheeshwari
You have to chage the data type in target organization also,yhen only you can move