The Force.com Migration Tool is a Java/Ant-based command-line utility, based on the Force.com Metadata API, for moving metadata between a local system directory and a Force.com organization.

learn more… | top users | synonyms

1
vote
0answers
9 views

Using sf:bulkRetrieve do not fetch metadata components associated with a managed package

Given a metadata like "ApexTrigger" is it possible using sf:bulkRetrieve to fetch all triggers except the triggers part of any managed package ? EDIT:Also when we use sf:retreive using the ...
1
vote
1answer
13 views

Migrate custom field in Activity object

I've added a custom field to the Activities object which I'm trying to migrate data into using the Data Loader on the Event sub-object. However, when I'm creating the map for loading, I do not see my ...
1
vote
1answer
26 views

Data Loader is skipping records during migration

I uploaded a batch of 10,000+ Accounts. Out of the Load file, let's say I have a record by the name Acme. Acme has apparently been successfully uploaded according to the Success Log (which also has ...
1
vote
2answers
89 views

Force.com Migration Tool - How to correctly retrieve & deploy

I'm looking for some guidance on how this tool is widely used. We have the following scenario: Source: 1x Production org, with 1 (or more) managed packages installed. Targets: Multiple Production ...
2
votes
3answers
80 views

Formula Field Deployment to Production

I am trying to deploy a couple of formula fields from sandbox to production but I am receiving this error: The formula references fields across 11 relationships while only 10 are allowed. Now I know ...
3
votes
2answers
116 views

How to retrieve customFields on standard objects using Ant Migration Tool

Background I'm trying to reset a dev org by using this ant script. Most part of the customisations added by default are removed. However, I'm not being able to retrieve custom fields on ...
6
votes
2answers
206 views

Ant Migration tool - sf:compileAndTest

I would like to configure the ant migration tool so that only test classes are run that we own so no managed package classes. Now i searched on the documentation of the tool and i only find the ...
2
votes
2answers
119 views

Deploy Dashboards and Reports using Migration Tool

I can't find a way to deploy Reports and Dashboards to a new organization. It's complaining it can't find the reports folder. And there's a very unhelpful error with the folder: ...
2
votes
1answer
45 views

Move Queues between instances with Force.com Migration Tool (Ant)?

I know I can move Queues from instance to instance using Change Sets, but is there any way to do it with the Force.com Migration Tool (Ant)?
6
votes
2answers
389 views

Resetting my development org to an empty state

I would like to clear out my development org of all artefacts on a regular basis and then do a deploy of the development package from my local source. I realise there are retrieve and list tasks ...
11
votes
1answer
93 views

How can I delete a Development Package (not an Installed Package) programatically?

Under Setup > Create > Packages, I have deployed "packages" with prefix 033 Under Setup > App Setup > Installed Packages, I have installed "packages" also with prefix 033 I understand that it is ...
3
votes
1answer
60 views

More than 1 developer package named 'MyPackage' exists in this organization. Please rename one of packages so that it has a unique name

First I was getting this error when tried to import the package from XML using Metadata API (I use force.com CLI for that). The package with this name really exists in the organization, but it ...
4
votes
1answer
66 views

errors while use force migration tool

I'm work on a managed package in a developer org and I'm using the migration tool to move the contents to an Enterprise Edition org provisioned from the partner portal. I was able to pull my package ...
4
votes
1answer
108 views

RecordType Label Error: Duplicate Values Not Allowed

I deployed a new RecordType to an Opportunity (where other RecordTypes/Sales Processes already existed). I notice that my RecordType, when selected on a new Opportunity, returns bad data for my Stage ...
8
votes
1answer
449 views

How to mass populate State & Country picklist values

I have played with the State & Country picklist value UI for adding them, and it works OK for small amounts, but it is not meant for batches. I have 760 additional states I need to add for various ...
6
votes
1answer
612 views

How to deploy approval process using ANT/Eclipse in salesforce

I am trying to deploy approval process to cutomer Production orgs. It is difficult to do the manual creation of approval in each customer org. Anybody know this can be done by ANT/Eclipse ? Thanks in ...
0
votes
0answers
26 views

How to communicate migration of deleted objects and getting version history

Query 1. Currently we don’t have meta data for ‘version history’ accessible via Ant API. So if developer goes to salesforce URL,and make changes directly ,version history is not logged or accessible ...
1
vote
0answers
41 views

Migration issues in sandbox

I got a sandbox whose metadata i want to migrate to another sandbox(not belonging to the same production) My target sandbox is consulting partner edition and source is Enterprise Edition I tried ...
3
votes
1answer
72 views

Ant Retrieve Call for Layouts Throwing Java.Io.IOException: File name Directory name invalid

I wanted to have Automated Backup of Salesforce Environment which includes all of the code and configuration we get through the Eclipse project and then meta data Selection. I used ANT scripts and ...
11
votes
1answer
103 views

page compile problem not being caught by force.com IDE or ant migration

Today we had an interesting problem that a developer made a change to a Controller that removed an attribute from controller but left it in the page - which should then cause the compile error to a ...
3
votes
1answer
227 views

Ant migration tool and own required test coverage value

Does somebody know about the following scenario: I need to - calculate an apex code coverage during deployment with Migration tool - give the result on console, - after that I need to decide about ...
2
votes
0answers
35 views

layoutItems order problem

We have a developer that added a new field to a custom object. It was automatically added to the layout in the last position. She refreshed her force.com ide fom the server and pushed the change to ...
4
votes
1answer
122 views

How to retrieve action overrides?

Question Is there any trick to retrieving action overrides via the metadata api? Background The docs seem to indicate this is straightforward, just use object dot notation and a type of ...
1
vote
1answer
272 views

Change sets including custom objects and custom fields

I have always been curious how other developers deploy custom objects and fields. If I have a small amount of development work in sandbox, I can just recreate the new custom objects and fields in ...
1
vote
1answer
255 views

How to automate the loading and updating of reference data from command line/ant?

It seems there are tons of ways to load data into salesforce - https://help.salesforce.com/HTViewHelpDoc?id=import_which_data_import_tool.htm&language=en_US But I am specifically looking for the ...
3
votes
2answers
136 views

force.com ide circular dependency problem for new dev setup

we are using the each dev having own sandbox with svn & force.com ide method of team development outlined here ...
1
vote
0answers
106 views

Force.com IDE auto-commit on deploy

We are using the standard SVN eclipse plugin: Subversion. Is it possible to configure Force.com IDE to auto launch the SVN commit after "deploy to server" ? I was looking for something like "hooks" ...
8
votes
1answer
361 views

Get Status Updates When Running Tests with ANT Migration Tool

I'm trying to set up Jenkins to automate a daily task of running all tests in my sandbox (and eventually, production environment. Typically, when I do a deploy or retrieve task, I get lots of output ...
3
votes
1answer
291 views

Custom Field Definition ID: bad value for restricted picklist field: RecordType

I am migrating objects from one org to another using the ant migration tool and came across the following error. Custom Field Definition ID: bad value for restricted picklist field: RecordType I ...
2
votes
2answers
50 views

Standard Objects in PermissionSets - Migration Retrieve Issue

I have a PermissionSet in a dev org. When I retrieve this PermissionSet using the migration tool, only the permissions that I have set for Custom Objects show. I added CRUD permissions for several ...
3
votes
1answer
221 views

Deploying classes with the Migration Tool

I'm new to SalesForce development, so forgive my if this question doesn't make sense. I've opened my org in sales force and have synchronized labels, classes, pages, custom objects and triggers and ...
3
votes
1answer
316 views

How Run Tests in Default namespace for sandbox using Ant

I am planning to run SFDC tests for Default namespace in sandbox my build file is as follows - <target name="RunTestDefaultNamespaceSandbox"> <sf:compileAndTest username="${sf.username}" ...
3
votes
1answer
504 views

Deploying custom setting using ant

I was looking at this doc : http://www.salesforce.com/us/developer/docs/daas/salesforce_migration_guide.pdf I am preparing a ant manifest for migration and cannot find custom setting in the doc, I ...
13
votes
3answers
599 views

Hard-Delete Objects Using the Force.com Migration tool

Is there a way to hard-delete custom objects using the Force.com migration tool? When you deploy a DestructiveChanges payload, the objects are "soft-deleted" and not erased from the platform. This ...
2
votes
0answers
123 views

Deploying metadata to Group Edition

I'm attempting to deploy a page-layout with the ant-migration tool to a Group Edition org, however, when I do so using the <sf:deploy> call, the system attempts to run the unit-tests, and throws ...
6
votes
1answer
175 views

Customizing Package.xml for updating Sandboxes with Continuous Integration

I am setting up a continuous integration for a team development process using GitHub and Ant (and eventually Jenkins) and have a problem with deploying to dev sandboxes to keep them in sync with ...
6
votes
2answers
548 views

Deploy custom labels with Ant

We are trying to start using custom labels, but are having issues deploying them using our ant script. Our custom labels file looks something like this: <?xml version="1.0" encoding="UTF-8"?> ...
1
vote
1answer
155 views

Approach to Load data from Master to Child objects from Legacy database

We have an oracle database with 100,000 records which has a master table called Application and it has a child called Application Individual and each Application individual has one level children like ...
3
votes
1answer
297 views

Deleting/Editing fields with Migration Tool

I'm starting to use ANT to deploy changes to my SF org. Can I delete and edit custom fields using the ANT Migration Tool. In the documentation I only found how to delete the entire object
6
votes
2answers
724 views

Migration Tool: “Concurrent modification from setup pages”

I'm trying to deploy changes from one sandbox to another using the Migration Tool, but I keep getting the following error: Error: objects/Contact.object(263,13): Concurrent modification from setup ...
11
votes
3answers
423 views

Deploy to Production - Cancel Deploy After Test Failure

I am using the Ant Migration Tool for deployments. While utilizing this tool, all deployments are visible under the Monitor Deployments page. In a client's production instance, they have more than ...
6
votes
1answer
547 views

sf:retrieve gets a file, but sf:deploy can't find it for the deploy?

I have the following set up in my build.xml file: <target name="retrievePackage" description="Retrieves the specified package from the specified organization. Pass the name of the deployment file ...
5
votes
1answer
749 views

Full List of All Accessible Types Through Metadata Api

I am looking for some official Salesforce documentation on a list of all available types in the metadata API. If I am using a package.xml file that looks like: <?xml version="1.0" ...
7
votes
6answers
2k views

How to exclude invalid fields that can't be deployed by the Migration Tool from .object files when automating deployment?

I'm trying to add a level of automation to our development processes. My goal at the moment is to be able to automatically retrieve check-ins to our development feature release branch and then ...
3
votes
1answer
192 views

Ant Migration Tool - Order of Package.xml File Matter?

Does the order of the package.xml file matter? For instance: <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> ...
0
votes
1answer
60 views

How to use the Migration Tool with Single Sign On?

I've used the Ant Migration Tool previously, but only in an Org that allowed a username/password login. Now I'm trying to get it to work for deployment to an Org that uses single sign on, but I can't ...
8
votes
2answers
3k views

Generate complete package.xml for Org

I'm using the Force.com Migration Tool for Ant more and more. I currently have several organizations at different API versions (release previews, for example). Is there a way to generate a complete ...
8
votes
2answers
2k views

Object Deploy fails with: “duplicate value found: <unknown> duplicates value on record with id”

When I try to redeploy an object that exists in source and destination orgs, the deploy fails with the cryptic and useless error message: duplicate value found <unknown> duplicates value on ...
5
votes
2answers
223 views

Is there a SFDC tool to quickly load - and reload - test data?

Is there already a SFDC tool that will take a set of test data - similar to what is part of every developer org - and load it into a new developer sandbox? Is there a tool to wipe out an entire org's ...
1
vote
1answer
320 views

Force.com Migration tool Installation Process

Force.com Migration Tool: I am trying to install Force.com Migration tool which runs based on JDK & ANT. I have successfully installed JDK1.6 & set an environment variable. as described in ...