We are getting the following error when attempting to deploy an UN-changed version of an
AuraDefinitionBundle to one of our Patch orgs using the Force.com Migration Tool:
UNKNOWN_EXCEPTION: Managed Package Patch Modification Exception: A change was made to the patch release that will change the visible behavior of the application: You can't delete managed-released components in a patch release
This is only happening when trying to deploy one of our
AuraDefinitionBundle files. We have not made any changes to any portions of this bundle at all, so we are very confused why we are getting this error, and it is causing our automated Continuous Integration builds to this patch org to fail.
As proof that we have not modified anything in this file, we retrieved the file exactly as it is from the org, then redeployed it unchanged. That is, we used the Force.com Migration Tool's
ant retrieveUnpackaged default command with a
package.xml like the following:
<?xml version="1.0" encoding="UTF-8"?>
And then immediately used
ant deployUnpackaged to deploy what was retrieved right back to the same org. And we got the above error.