certinia / df12-deployment-tools

BSD 3-Clause "New" or "Revised" License
108 stars 53 forks source link

undeploy GeneratePackageMembersStdObjCustomElements2 target failing #15

Open dongidea opened 9 years ago

dongidea commented 9 years ago

I'm unable to perform undeploy target when profiles use my custom app as default for landing as well as having active filter lookup in custom object.

GeneratePackageMembersStdObjCustomElements2: [antcall] Exiting /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/project-3/build.xml. [antcall] Exiting /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/project-3/build.xml. [sf:deploy] Request for a deploy submitted successfully. [sf:deploy] Request ID for the current deploy task: 0Af28000000WyVcCAK [sf:deploy] Waiting for server to finish processing the request... [sf:deploy] Request Status: InProgress [sf:deploy] Request Status: InProgress [sf:deploy] Request Status: InProgress [sf:deploy] Request Status: InProgress [sf:deploy] ----------------------------------------------------------------------------------- [sf:deploy] Component Failures: [sf:deploy] 1. -- Error: Unable to delete custom app. Profiles are using this custom app as default. [sf:deploy] 2. objects/Account.object (Account.Active__c) -- Error: This custom field is referenced elsewhere in salesforce.com. : Filtered Lookup. This custom field is referenced elsewhere in salesforce.com. : Filtered Lookup.

afawcett commented 9 years ago

@comic96 Have we fixed this in our internal copy, i'm sure i've seen this before? cc @roc-wilcox

valmaev commented 9 years ago

Did you solve it, @afawcett? I faced with the same issue.

afawcett commented 9 years ago

I'm asking around internally within FF R&D...

nh11 commented 8 years ago

@afawcett did you solve it ? I'm facing this error everytime i am undeploying using destructiveChanges.xml. along with this i'm facing a lot of errors like : pages/tabbedLoanAccount.page -- Error: The page you have tried to delete is currently being referenced by a page, custom link, button, web tab, dashboard, SoftPhone layout or custom sidebar component. Please delete the reference before deleting the page.

afawcett commented 8 years ago

This is pretty much the same sort of response as [https://github.com/financialforcedev/df12-deployment-tools/issues/19]. It maybe the script needs enhancing to unpick the references from the Profiles, or attempt to delete them as well in the same request.

klercker commented 8 years ago

I'm having same same but different types of undeploy problems. One thing we fail in is the fact that lookups from managed objects to custom objects makes the undeploy fail since removing the custom class breaks the lookup dependency. Removing those lookups is not done because the managed objects do not get included when reading metadata from the org. I'm wondering if one could create somewhere to put for example a list of managed objects that should get cleaned up, which would include them in the object retrieve?

Another welcome improvement would also be handling of aura bundles, both on deploy and undeploy. We also have customMetadata and permissionSets in our metadata. They were not included in the deploy.zip build, although it was easily fixed in deploy.xml

Of course, being on Github, I guess I should put that fork I mistakenly created to good use :)

afawcett commented 8 years ago

:+1:

afawcett commented 8 years ago

I've marked this as an enhancement idea. What do you think is a better title for the issue?