I came across the below notes in one of the Salesforce guides around deployments.
From the below statement, i could not understand, if Salesforce is trying to say that we cannot run validations, when our package involves a change of changing the field type from Master-detail to LOOKUP or vice versa.
Note
If you change a field type from Master-Detail to Lookup or vice versa, the change isn’t supported when using the Validate option to test a deployment. This change isn’t supported for test deployments to avoid data loss or corruption. If a change that isn’t supported for test deployments is included in the deployment package, the test deployment fails and issues an error.If your deployment package changes a field type from Master-Detail to Lookup or vice versa, you can still validate the changes before you deploy to production. Perform a full deployment to another test sandbox. A full deployment includes a validation of the changes as part of the deployment process.
What is meant by the emphasized sections above?
- ...from Master-Detail to Lookup or vice versa, the change isn’t supported when using the Validate option to test a deployment...
- ...Perform a full deployment to another test sandbox. A full deployment includes a validation...