Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
0 votes
1 answer
26 views

Do triggers in salesforce have test class created by salesforce not by the developer?

I am using Ant Migration tool to deploy or retrieve my metadata in salesforce. I have a LeadTrigger that I fetch but when I was running the test before I deploy, I got the error that I didn't reach ...
user avatar
0 votes
1 answer
22 views

Installation steps for Salesforce ANT migration tool (apache ANT) on Linux machine

i need to install Apache ANT and Salesforce ANT migration tool on the Linux machine. I have downloaded both zip files and installed the java JDK 11 version. How can i set up the environment variables ...
user avatar
0 votes
1 answer
76 views

Salesforce to Salesforce data migration [closed]

I’m in the process of moving metadata and data from one source org to a new different target org. I’ve mostly completed moving all the metadata using ANT. I’ve moved some standalone tables of data ...
user avatar
  • 2,325
0 votes
1 answer
51 views

ContentDocument migration between orgs

Is there any out of the box tool which can help or simplify migration of ContentDocuments to new environment? Custom object records are already migrated, external ids are used ContentDocumentLink is ...
user avatar
0 votes
1 answer
49 views

Object metadata deployment through workbench

While deploying object metadata of an org's backup using workbench to a new sandbox it is giving errors like "Cannot create a new component with the namespace: pse. Only components in the same ...
user avatar
  • 9
0 votes
1 answer
22 views

Is there a way to install remotely a Package in an Org?

I'm wondering if there is a way to install a Package in an Org but remotely, not by logging me into the Org itself. Let me give you an example. Let's suppose I have: Org A Org B Org C and I want to ...
user avatar
0 votes
0 answers
46 views

Not able to set up ANT Migration Tool

I am trying to set up the ANT Migration Tool on my Windows Laptop (Windows 10 64 bit). I have set the ANT_HOME, JAVA_HOME, and PATH but still, I am getting the error 'ant' is not recognized as an ...
user avatar
1 vote
1 answer
86 views

not able to migrate knowledge articles

I am trying to migrate Knowledge Article from source salesforce to destination salesforce environment. Source salesforce environment is classic while the destination is lightning. In order to start ...
user avatar
  • 197
1 vote
1 answer
104 views

How can I export all my Salesforce Community data? [closed]

My team is currently attempting to migrate out of Salesforce Community, but we are having a really hard time figuring out how we could: Export all discussions Export all users The documentation for ...
user avatar
0 votes
0 answers
428 views

How to bulk transfer reports from one .org to another .org?

My task is to upload all of the reports of an old .org to a completely new .org I found that it is possible to retrieve reports via .xml-files from an old .org and upload it to a new org via workbench....
user avatar
  • 3
1 vote
0 answers
271 views

Deploy with BitBucket pipelines and ant migration tool - commit hash of last successful build

I am using ant migration tool in bitbucket pipelines to deploy metadata into Salesforce instance. This pipeline runs for every commit pushed to master branch. The build process takes a considerable ...
user avatar
1 vote
2 answers
1k views

How can I insert records from one sandbox to another sandbox?

I have sandbox shared for my team and I have personal sandbox. How can I insert records sandbox shared for my team to my personal sandbox? I have required objects and fields. I don't need to insert ...
user avatar
1 vote
1 answer
59 views

Ant Migration tool : Running a Subset of Tests in a Deployment

In the build.xml , is there a way to specify a list of test classes to be added for running on deployment from a external file instead of hard coding it in the build.xml https://developer.salesforce....
user avatar
  • 997
2 votes
1 answer
433 views

Metadata Migration Best Practices

What are good ways to migrate solutions from one environment to another? Packages? Is gitHub a solution and if yes, why ?
user avatar
0 votes
1 answer
263 views

Migration between 2 production orgs

I have the duty to migrate a production org into a new(fresh new) Salesforce org, only metadata wise. That includes custom objects, customization to standard objects, proccess builders, approval ...
user avatar
1 vote
1 answer
93 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. ...
user avatar
  • 73
0 votes
1 answer
359 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 ...
user avatar
  • 2,713
0 votes
1 answer
140 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 ...
user avatar
0 votes
1 answer
229 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. ...
user avatar
1 vote
2 answers
282 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?
user avatar
0 votes
1 answer
2k 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 ...
user avatar
  • 1,000
3 votes
2 answers
5k 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 ...
user avatar
5 votes
1 answer
501 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 ...
user avatar
  • 2,713
0 votes
1 answer
467 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 & ...
user avatar
  • 197
0 votes
2 answers
399 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="...
user avatar
0 votes
1 answer
594 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\...
user avatar
0 votes
1 answer
179 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 ...
user avatar
9 votes
3 answers
26k 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 ...
user avatar
  • 13.2k
1 vote
2 answers
417 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 ...
user avatar
0 votes
3 answers
453 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 ...
user avatar
  • 341
0 votes
1 answer
115 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 ...
user avatar
1 vote
1 answer
201 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.
user avatar
  • 341
0 votes
1 answer
841 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: ...
user avatar
0 votes
1 answer
471 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>...
user avatar
  • 1,061
0 votes
1 answer
800 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/...
user avatar
0 votes
1 answer
43 views

Why am I Seeing Summer 2016 API errors with the Summer 18 version of the Salesforce Migration Tool?

I am trying to download the latest version of the force.com migration tool (sometimes called the ANT migration tool.) The download page seems to link to the Summer 2016 version of the tool (see ...
user avatar
  • 103
1 vote
1 answer
1k views

Ant Problem deploying field on custom metadata type

I am trying to deploy a field on a custom metadata type using Ant. Here's my package.xml: <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> ...
user avatar
  • 4,441
0 votes
4 answers
4k 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 ...
user avatar
  • 5
1 vote
1 answer
128 views

Production issues handling and data sync to downstream salesforce environment

I want to know how you are handling with below business case. How are you copying production data to the downstream environment, i e test, production support etc.. ?(I have 20 plus objects with ...
user avatar
3 votes
1 answer
3k views

LIMIT EXCEEDED during ANT retrieve call

I am trying to retrieve metadata from Salesforce using ANT retrieve but it goes in timeout and I get the following error message when I restart it: (Error: Retrieve failed: {"done":"true","...
user avatar
  • 335
0 votes
1 answer
244 views

Rename "Report Type" label and name and migrate to Salesforce production instance

As a part of CI/CD pipelin we have following 1. A sandbox where we develop with a branch on bitbucket. 2. A branch and a sandbox for QA. 3. A master branch for holding production box metadata. 4. A ...
user avatar
4 votes
1 answer
112 views

why is undeploy triggering all the apex test in production

I am using the ant migration tool. And this have never happened till today. The ant target to delete looks like <target name="undeployCode"> <sf:deploy username="${sfdc.username}" ...
user avatar
  • 427
0 votes
1 answer
440 views

ANT Migration to add namespace to packaging org? [closed]

I have two dev org one where I did code and other is packaging org where I have to create a managed package. How can I configure ANT tool with build.xml and build.properties files to add the ...
user avatar
2 votes
2 answers
865 views

How do I migrate Process Automation Settings -> Enable record locking and unlocking using ANT Migration Tool or ChangeSet or Metadata API

How do I migrate setting Process Automation Settings -> Enable record locking and unlocking using ANT Migration Tool or ChangeSet or Metadata API? We need to migrate checkbox checked in settings ...
user avatar
  • 13.2k
3 votes
1 answer
12k views

Retrieve/Deploy a custom metadata type's list view?

I'm trying to deploy a list view for a custom metadata type using the Force.com Migration Tool, but I am unable to locate the ListView to include in my package.xml retrieve. I have deployed many ...
user avatar
0 votes
2 answers
1k views

What is the sequence of migrating data from one Salesforce to another Salesforce org

I want to transfer all my data from one Salesfoce org to another Salesforce org. Kindly let me know sequence of data import. What object's data shoud i import first?
user avatar
3 votes
2 answers
1k views

Summer18: Test only deployment cannot insert a new Master-Detail field

Today SF has just pushed Summer18 (api version 43) to our sandboxes. And now when our CI process is trying to validate code from branch against empty SF org, it throws bunch of same error messages ...
user avatar
  • 2,713
1 vote
0 answers
233 views

Dealing with different user permissions in different orgs when deploying profiles

I am trying to add profiles to our repository and use that to deploy to different orgs. The problem I'm dealing with is that each org has different user permissions and a user permission may work in ...
user avatar
  • 2,122
1 vote
1 answer
2k views

What is the best way to mass update the field labels of a custom object in Salesforce?

I have a requirement to update the field labels of 200 fields in a custom object and mass delete another 100 fields. what is the most time efficient way to accomplish this? I read a post that said ...
user avatar
2 votes
1 answer
2k 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' ...
user avatar
  • 8,312

1
2 3 4 5 6