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
SARI4SARI4 

Error on FieldUpdate And Email ALert deployment - Not in package.xml error

Hi,

I am trying to deploy Approval process with Field Update and Process Flow with Email Alerts using package.xml file and ANT tool.

its giving me not in package error for field update and Email alerts. I have added all field update  like below

<members>obj__c.fieldUpdateName</members>
<name>workflowfieldupdate</name>

And email alert  like beow
<members>obj__c.emailAlertName</members>
<name>workflowEmailAlert</name>

When I retrieve the package then it shows me all fieldupdates and email alert in fiel but on deployment its giving me error. -NOT IN PACKAGE
SARI4SARI4
Correction-
<members>obj__c.emailAlertName</members>
<name>workflowAlert</name>

 
Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

The deploy package to package.xml validation is case sensitive. Double-check the API name (including case) of the object or field in your package.xml.

Please refer to the below link which might help you further with the above issue.

http://www.infallibletechie.com/2014/10/how-to-deploy-workflow-email-alerts.html

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas