2

I am deploying the components using workbench. One of the components is 'case' object that has got business process named "Complaints & Enquiries". When trying to deploy the package, getting below error.

"An object 'Case.Complaints & Enquiries' of type BusinessProcess was named in package.xml, but was not found in zipped directory"

Case.Complaints & Enquiries is present inside case.object OBJECT file.

Did anyone face similar issue?

1 Answer 1

2

You need to "escape" ampersand (&) in your package.xml with a "character entity." This is because XML uses & as a special character to represent other characters, and must therefore itself be escaped. In your package.xml, it should be Case.Complaints & Enquiries. In the Case.object file, you must also observe this rule.

4
  • Yes. I can see "<members>Case.Complaints &amp; Enquiries</members>" in package.xml and " <businessProcesses> <fullName>Complaints %26 Enquiries</fullName> <description>Complaints &amp; Enquiries</description> <isActive>true</isActive> " in case.object OBJECT file. Jun 25, 2019 at 0:58
  • I renamed <fullName>Complaints %26 Enquiries</fullName> to fullName>Complaints &amp; Enquiries</fullName>. it worked. Jun 25, 2019 at 1:04
  • @SFDClearner Odd, that should work. I've always recommended avoiding the use of & for various reasons. Did you manually create/edit this file, or did it come from a previous API call?
    – sfdcfox
    Jun 25, 2019 at 1:07
  • I downloaded the case.object OBJECT metadata file with the help of 'Salesforce inspector' and edited the full name. Will make sure not to use '&' in future. Jun 25, 2019 at 1:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .