When creating Custom Objects with Change Sets it is not uncommon to get an oops. The difference between a smooth production release and one that leads to late nights is dealing with the issue from the root rather than the quick fix that might be forgotten between the test and the release. Sometimes going back to the beginning requires deleting the object from the target. Recently I learned that (the hard way, as usual) that deleting the object may not delete everything about the object.
In the case of a master-detail relationship, deleting the detail object does not remove the relationship to the master object. This is discovered when attempting to re-deploy the detail object in a subsequent, improved change set.
To address this, after deleting objects that you plan to re-create with a change set:
- Switch to Classic mode
- Go to the Create > Custom Objects page
- Scroll to the bottom and find a link to Deleted Objects
- Click Erase (and subsequent prompts)
© Scott S. Nelson