Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

undeploy GeneratePackageMembersStdObjCustomElements2 target failing #15

Open
dongidea opened this issue Apr 1, 2015 · 8 comments
Open

Comments

@dongidea
Copy link

dongidea commented Apr 1, 2015

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
Copy link
Contributor

afawcett commented Apr 1, 2015

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

@valmaev
Copy link

valmaev commented Apr 10, 2015

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

@afawcett
Copy link
Contributor

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

@nh11
Copy link

nh11 commented Nov 26, 2015

@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
Copy link
Contributor

This is pretty much the same sort of response as [https://github.com//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
Copy link

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
Copy link
Contributor

👍

@afawcett
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants