Questions tagged [migration-tool]

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.

Filter by
Sorted by
Tagged with
21
votes
1answer
10k views

Force.com IDE profile deployment - You cannot deploy to a required field Object_Name__c.Field_Name__c

The following error pops up when I am trying to move all the meta data from one environment to another (with Profiles). You cannot deploy to a required field Object_Name__c.Field_Name__c Upon ...
2
votes
2answers
722 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 package....
1
vote
1answer
323 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
114 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
4answers
3k 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 ...
4
votes
3answers
2k 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 ...
12
votes
4answers
14k 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 Opportunity,...
13
votes
4answers
8k 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 ...
5
votes
2answers
5k 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: reports/...
2
votes
1answer
2k 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)?
21
votes
2answers
5k 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 ...
14
votes
1answer
431 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 ...
4
votes
1answer
449 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
1k 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
2answers
1k 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 ...
19
votes
3answers
6k 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 ...
9
votes
1answer
10k 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 ...
1
vote
0answers
59 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
2answers
378 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
131 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 ...
5
votes
1answer
876 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
47 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 ...
7
votes
2answers
3k 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 ...
2
votes
1answer
2k 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
2k 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
534 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 (http://www.soliantconsulting.com/blog/2013/03/working-forcecom-ide-and-subversion-...
2
votes
0answers
274 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" ...
10
votes
1answer
2k 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 ...
5
votes
3answers
4k 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
149 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
427 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 ...
8
votes
2answers
2k views

How to run tests in the default namespace in a 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}" ...
5
votes
2answers
10k 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 ...
21
votes
4answers
4k 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
320 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 ...
7
votes
1answer
1k 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 ...
8
votes
2answers
6k 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
502 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 ...
5
votes
1answer
4k 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
7
votes
2answers
1k 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 ...
14
votes
3answers
1k 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 ...
9
votes
1answer
5k 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 ...
9
votes
3answers
12k 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" encoding="UTF-8"?...
13
votes
5answers
12k 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 ...
5
votes
1answer
8k 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> <...
2
votes
2answers
774 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 ...
20
votes
5answers
22k 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 ...
35
votes
5answers
17k 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
3answers
951 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
2answers
1k 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 ...