2

I am trying make a deployment using ant, i have an error concerning Approval processes, i am wondering if we can really deploy an approval process using ANT:

All Component Failures:
1.  package.xml -- Error: ApprovalProcess cannot be a component in a managed or unmanaged package. Remove ApprovalProcess from package.xml to deploy unpackaged components.

Do you know why ?

2
  • 1
    My guess is that your package.xml has a fullName member; approval processes can't be in a package.
    – sfdcfox
    Jan 7 '17 at 22:39
  • Yes that is, i just delete the FullName memeber and it worked, thank you sfdcfox Jan 7 '17 at 23:32
8

When you add fullName to a package.xml, the metadata API assumes you're trying to insert/update a package instead of deploying unpackaged metadata. You must not specify fullName when deploying components that cannot be packaged.

6
  • - whats this fullname?
    – OK999
    Jul 18 '18 at 18:31
  • oh i think i know what you meant by fullname. is it the approvers NAME?
    – OK999
    Jul 18 '18 at 18:51
  • 1
    @OK999 No, the OP added a "fullName" attribute to their package.xml, which resulted in an error message. You cannot package approval processes, so attempting to create a project with it generates an error.
    – sfdcfox
    Jul 18 '18 at 18:57
  • ok got it .. never expected that attribute :)
    – OK999
    Jul 18 '18 at 19:24
  • @OK999 Most people have probably never used it, it's mostly for ISVs, but it's something good to know if you need it.
    – sfdcfox
    Jul 18 '18 at 19:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.