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
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 ...
11
votes
4answers
12k 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
4k 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
422 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
412 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 ...
7
votes
1answer
9k 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
356 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
869 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
46 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
517 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
273 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 ...
4
votes
2answers
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
148 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
426 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
9k 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
3k 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
490 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 ...
8
votes
3answers
11k 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
7k 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
670 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
21k 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
16k 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
857 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 ...
7
votes
1answer
650 views

Automating snapshots with ANT migration tool and GIT

How can I automate the process or retrieving a snapshot of my code and configuration and committing it to git? We have a ton of development happening in my org, and I'm currently saving daily ...
7
votes
1answer
434 views

Migration Tool: Build failure because of dependencies

I just deployed code using the Migration Tool, including a new Public Group and some other objects (report folder, list view, etc.) that were shared out to that group: <?xml version="1.0" encoding=...
5
votes
1answer
4k views

How can I delete workflow rules using the Migration Tool?

I'm trying to delete all of the worflow rules & triggered tasks associated with a custom object, using the Force.com Migration Tool, but I keep getting errors. First I tried to submit blank ...
3
votes
3answers
2k views

Can't deploy org-wide permission set with ant

I have created an org-wide permission set (i.e. not tied to a specific User License type) and am trying to deploy the permission set using ant (I just downloaded the latest .jar file, 26.0) but I'm ...
17
votes
4answers
5k views

Are there any tutorials for configuring Jenkins with the Force.com Migration Tool?

I have watched a couple of interesting videos from Dreamforce about using Jenkins for Continuous integration, none of them go into the details of configuring Ant withForce.com Migration Tool in ...