+ Start a Discussion
pinkelk3pinkelk3 

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>alan@pinkelk.com.dev1</recipient>

 

When deploying this to Production, the User 'alan@pinkelk.com.dev1' does not exist - the User Id is 'alan@pinkelk.com' - 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? 

JonPJonP

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 > Force.com > Refresh from Server to undo your local changes.