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
6
votes
1answer
6k views

Deploying Business processes with ANT

I have tried to deploy business processes with ant. I seem to have the syntax wrong. I am seeing Entity type: 'businessProcesses' is unknown <?xml version="1.0" encoding="UTF-8"?> <Package ...
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 ...
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,...
3
votes
1answer
696 views

Workbench is down. Any good alternatives for preparing package.xml?

Workbench is down today due to an expired SSL Certificate. I have become so dependent on using Workbench to retrieve the Metadata API names to include in my Migration Tool's xml package manifest that ...
0
votes
2answers
450 views

How can I migrate data and related data from one org to another org?

I have a requirement to migrate data and I have a lot of related data, records and relationships to maintain. Is there a utility or tool to help me do this to minimize the amount of manual steps I ...
1
vote
2answers
731 views

Migration between unrelated orgs

Hi I will have to migrate code,reports and metadata between 2 unrelated orgs and I have concerns regarding few components. reports I remember having problems while deploying report folders. I had to ...
6
votes
2answers
2k views

The approval process references the workflow action FieldUpdate Some_Field_Update, which doesn't exist for the Some_Custom_Object__c object

While trying to deploy an approval process with the Salesforce Migration Tool, I get the following error: The approval process references the workflow action FieldUpdate Some_Field_Update, which ...
2
votes
2answers
781 views

Metadata Compare- is there an easier way than selecting all components in eclipse, then using a tool like Kaleidescope(mac)

I'm in progress with a Metadata Compare of 2 Salesforce Sandboxes. As part of a client requirement, we have to do a full compare that migration to a new sandbox is complete. We are using changesets, ...
1
vote
1answer
30 views

Lightning Knowledge Migration - No primary custom field found

I am trying to get my lightning Articles migrated from classic to lighting. Now I am trying to use the Lightning Knowledge Migration assistant to migrate the articles. I received the below error. ...
12
votes
2answers
6k views

Getting an error that a flow “was” activate and cannot be overwritten

I'm using Salesforce Migration Tool (Ant) to deploy flows and processes. If memory serves, so long as the flow in the destination org was not activate (or deactivated) I could overwrite it. If you ...
3
votes
1answer
2k views

How to run all the test classes in the org using Ant?

I want to run all the test classes in my org excluding any test classes from Managed package installation using Force migration tool aka ANT. Looks like there used to be a task called sf:...
0
votes
1answer
37 views

Deployment of destructive changes to production and tests execution

We need to remove trigger and apex test class for it from production org. We've already put together destructiveChanges.xml and are going to deploy it to prod org via ant migration tool. The question ...
1
vote
1answer
562 views

How to Deploy Search Layout Containing Custom Fields

I'm trying to deploy a PricebookEntry object containing a SearchLayout which contains standard and custom fields however I'm having issues when I include a custom field. The following is what ...
0
votes
1answer
28 views

How to enforce code coverage using Salesforce Migration Tool (Ant) whilst targeting a sandbox?

I am preparing an Ant package to move code to production. However, many of the existing orgs tests are very out of date and are failing. At this point, my only option is to select tests that cover the ...
0
votes
0answers
76 views

How to resolve deployment error: “Error: You may not turn off permission Read PartnerFundClaim for this License Type”

Using Salesforce Migration Tool (Ant) and whislst deploying a profile, I am getting this error: [sf:deploy] Component Failures: [sf:deploy] 1. profiles/My Custom Profile.profile -- Error: You may ...
0
votes
1answer
39 views

ANT Migration Tool deployment error: “Bad file: XML document structures must start and end within the same entity”

I know what this error means, but the XML I'm deploying (below) was generated by the Migration Tool after running ant retrieve, and every XML validator I've tried says it's valid XML, without typos. ...
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 ...
1
vote
2answers
71 views

What happens when you deploy object using ANT and all fields from source to target Org?

On the object level - does it do a full replace? For example on the Account or custom object. On identical fields - does it do a full replace or does not deploy or create a duplicate field?
0
votes
1answer
220 views

Moving changes from one organization to another

I have been working under an organization's salesforce instance for a little under a year now and have created custom objects, API endpoints, LWCs, and more. There has now been a a structural change ...
2
votes
1answer
449 views

Can I retrieve an Email Alert via the Ant Migration Tool?

I wanted to retrieve an Email Alert via the Ant Migration Tool. However, I could not find it in a Metadata Types Reference. I suppose it's hidden under some other name like many other SF Metadata ...
3
votes
1answer
41 views

Deployment of metadata via REST vs old style SOAP deployment

So now it's possible to deploy metadata using Rest approach (vs old-school classic and heavy SOAP one): https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_rest_deploy.htm ...
0
votes
0answers
23 views

Ant Migration Tool - where to get a source code

We are trying to implement some additional logic on top of sf:deploy and other targets provided by Ant Migration Tool. But need to examine a source code of those targets to better understand what's ...
0
votes
1answer
133 views

ANT Migration Tool struggles

I performed a dress rehearsal into a Developer Pro sandbox using the sfdx force:source:deploy command successfully. Now that I'm trying to use the same source metadata with ANT migration tool & ...
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
2answers
7k views

How do I retrieve Lightning Web Components using Ant Migration tool or mdapi:retrieve command from SFDX?

This is not clear or obvious how can anyone retrieve Lightning Web Components using Ant Migration tool or mdapi:retrieve command from SFDX? What is appropriate metadata API component which ...
4
votes
3answers
475 views

Retrieve all records for a single CustomMetaDataType using ant

I'm trying to use the ant migration tool to retrieve all the Custom Metadata records for a single Custom Metadata Type. However, I can't figure out the syntax. I would think that something like this ...
0
votes
2answers
369 views

Even with sf migration tool 40.0 version getting error sf:deploy does not support the “test Level” attribute

I have setup force.com migration tool with 40.0 version and java version "1.8.0_40" and Apache Ant(TM) version 1.9.4 compiled on April 29 2014 on my local machine. When i try to deploy the changes ...
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"?...
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 ...
1
vote
1answer
1k views

Ant migration tool failing to retrieve process builder flows using sf:retrieve command

I am trying to retrieve Process builder flows from sandbox org using Ant migration tool and it is failing to retrieve flows with this message : [sf:retrieve] package.xml - Entity of type 'Flow' ...
6
votes
1answer
1k views

Jenkins + Force.com Migration Tool - REQUEST_RUNNING_TOO_LONG

I am currently receiving a REQUEST_RUNNING_TOO_LONG error when using the Force.com Mirgration Tool and Ant with Jenkins. I've read quite a few posts about this error and understand that this is ...
0
votes
2answers
65 views

How to get test coverage of org while running validation jobs?

In our CI process, we trigger a job for validation in Jenkins and have an ant target which runs the validation first with checkOnly as true and runs all the tests. build.xml : <target name="...
0
votes
1answer
212 views

While retrieving or deploying Data using Ant Migration tool Error As java.io.IOException: Access is denied

I am unable to retrieve Code Using Ant Migration Tool. By using Command: ant retrieve code, Gettig an Error As java.io.IOException: Access is denied. Attaching CMD Error Screen.` C:\Program Files\...
0
votes
1answer
77 views

Trouble retrieving package.xml components using ant

I am running into the error "Invalid username, password, security token; or user locked out" when I try to retrieve the components using a package.xml. I am trying to retrieve all the Apex classes ...
9
votes
3answers
10k views

How to retrieve or deploy Custom Metadata Records by ANT Migration Tool?

How to retrieve or deploy Custom Metadata Records by ANT Migration Tool? Is this possible? I guess it should be possible if this is available for packages and changesets but can't find a way ...
0
votes
3answers
17k views

Retrieve and Deploy a workflow using ANT

I am working on some customization for a CPQ product and I have created a workflow to populate some of the fields. I would like to deploy this workflow from the developer sandbox to our fullcopy ...
1
vote
2answers
84 views

How can we skip the some records through SOQL

I am retrieving attachments through jitter bit SOQL query, but my all records are not retrieving through in the bulk so I have set the limit of 1000 but when I have download next 1000 records how can ...
0
votes
2answers
81 views

Prevent users from logging in during production delivery

We will delivery in our production org and we want to avoid users to log while the time of reconfiguration and delivery. It is recommended to modify Login Hours but we have a lot of profile to ...
8
votes
3answers
2k views

How do we migrate SSL certifcate between sandboxes

Can we migrate SSL certificates between sandboxes? I have a certificate uploaded in one sandbox and working fine and now intend to move all the pieces to another sandbox. I was hoping certificates are ...
0
votes
1answer
28 views

I have moved account data through data loader but Attachments files is not showing

I have moved account records through data loader, but all attachments, files, record type are not showing in my target org, only account name and some other fields are showing. Can you please help me ...
1
vote
1answer
73 views

transfer certificate Self-Signed between 2 sandboxes

I'm looking for a way to migrate certificate Self-Signed between two unbound sandboxes. I saw that certificate are not metadata, so it's a bit harder than expected for me.
0
votes
1answer
232 views

Picklist value not retrieve through force IDE

I am trying to deployed opportunity record type and business process but it is showing the error : File Name: objects/Opportunity.object Full Name: Opportunity.Third Party Fee Page Action: ...
0
votes
1answer
203 views

Can't retrieve non-customizable CustomObject named: Product

Using the ANT migration tool I am able to port all my Standard and Custom objects except for product My sample package.xml : <types> <members>*</members> <members>...
0
votes
1answer
241 views

Salesforce -Moving metadata showing error at the time of deploy

I am trying to move metadata through ANT tool, data also retrieved but at the time of deploying the data to another sandbox it is showing error like : All Component Failures: triggers/...
8
votes
2answers
4k views

Force.com migration tool deployment error with a history Tracking enabled custom object

While I was trying to deploy a copy of source code of production to a developer SB, with the Force.com migration tool, encountered the below error for a custom object with enableHistory = true in the ...
6
votes
2answers
5k views

Run Specific Tests with Ant Deploy specified by command line or file

When deploying with ant you have the option to specify which tests to run, e.g. <target name="deploy"> <sf:deploy username="${sf.username}" password="${sf.password}" ...
1
vote
1answer
520 views

Causes of organization lock

I recently tried to deploy some changes between sandboxes using the Force.com migration tool and got the following error: Failed to process the request successfully. Cause(ALREADY_IN_PROCESS): null:...
1
vote
2answers
8k views

Ant migration tool--FAILED TO SEND REQUEST

I am trying to use Force.com migration tool and trying to retrieve from an org. I installed Ant,Java did specify credentials in my build properties as below sf.username = ** sf.password =** sf....
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"?> ...
0
votes
2answers
1k views

Copy Custom Object From One Org To Another

Is it possible to copy one custom object from my salesforce org to another salesforce org? How?

1 2 3 4 5 6