[SalesForce] How to migrate an app from a prod server into a sandbox with Force.com IDE

I need to to do the following:

  1. Pull code for components from prod env into Eclipse
  2. Remove items that are not needed for deployment
  3. Deploy components to sandbox

Right now this is what I've been doing:

  1. Create a new Force.com Project and point it towards the prod env
  2. Pull down all components available into project
  3. Create a new Force.com Project and point it towards sandbox
  4. Pull down all components available from sandbox
  5. Copy and paste each desired component from first project and paste into appropriate folder in sandbox project
  6. Right-click on src folder in sandbox project and click on "Deploy to server"
  7. Point the deployment towards sandbox server
  8. Validate

After validation I am given the error below. Also, when I log into the sandbox in the web browser and look at the deployment monitoring info the attempts at deployment are not logged and there is no error information.

Thank you so much!!

error displayed after validation

Best Answer

It’s difficult to tell exactly what’s going wrong from your description, but given you have a lot of manual steps in the process I’m not surprised that something is going wrong along the way.

As several others have mentioned, there are a number of tools you can use which minimise the number of manual steps and help you quickly and reliably manage your deployments, such as:

  1. MavensMate
  2. Salesforce Change Sets
  3. Gearset Deploy

I’m a part of the Gearset team, so I decided to run through your workflow in the cloud version of our app to demonstrate how to quickly deploy changes from production to sandbox org. You can see the whole post on our blog here: http://gearset.com/blog/walkthrough-migrating-from-production-to-sandbox

We want to make the whole process of Salesforce deployment and moving things between orgs really simple and any feedback is always welcome.