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

Using Eclipse to deploy Workflow encounters 'No User' error

Here is a summary of the issue:


A Workflow Email Alert refers to a recipient User: <recipient></recipient>


When deploying this to Production, the User '' does not exist - the User Id is '' - so the deployment fails.


I believe this is a deficiency in the deployment system.  


The User Ids can never be the same, but the system knows the logic for generating User Ids between Prod and Sandboxes, so it should be able to translate User references so that they are correct for the target system.


Does anyone know a workround for this? 


One option is to work offline in your IDE project, then alter the username(s) in the XML files before using the Deploy to Server wizard.


When you go back to online mode, you'd want to do a right-click > > Refresh from Server to undo your local changes.