function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Satishakumar AwatiSatishakumar Awati 

What all special characters needs to be escaped in package.xml

I have below  package xml , deployment using sfdx is getting failed with error 'Not in package.xml'
<?xml version='1.0' encoding='utf-8'?>
<Package xlms="http://soap.sforce.com/2006/04/metadata">
	<types>
		<name>WorkflowRule</name>
		<members>Case.ABC: Update Requestor email</members>
	</types>
	<version>45.0</version>
</Package>

The command I used to deploy folder is 
sfdx force:mdapi:deploy -d deployFolder -u dev -w 5 --json

I noticed colon (:) in WorkflowRule name causing deployment to fail and it needs to be escaped with %3A.

Deployment succeded after escaping colon (:) special charecter in WorkflowRule name as below.
<?xml version='1.0' encoding='utf-8'?>
<Package xlms="http://soap.sforce.com/2006/04/metadata">
	<types>
		<name>WorkflowRule</name>
		<members>Case.ABC%3A Update Requestor email</members>
	</types>
	<version>45.0</version>
</Package>

What other all special charecters needs to be handled and escaped in package.xml?


 
MagulanDuraipandianMagulanDuraipandian
Check this link - https://www.infallibletechie.com/2019/11/which-special-characters-need-to-be.html