Questions tagged [ant]
Apache Ant is a software tool for automating software build processes.
37
questions
23
votes
4answers
17k views
best way to delete unused apex classes and triggers in production [duplicate]
We currently have around 20 apex classes and 5 triggers which are not used in our production org. We want to delete them in our production instance. We dont have ant scripts ready yet to be used for ...
3
votes
1answer
3k views
ant deploy error - Maximum size of request reached
I used to deploy metadata using ant migration tool successfully but from last night I am getting the below error:
John@John:~/mm_workspace/TEST_Project/deploy$ ant deployUnpackaged
Buildfile: /home/...
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 ...
23
votes
4answers
17k views
Deployment issues with Process Builder Flows
Deploying Process Builder Flows from one org to a target org only works via the ant migration tool if the existing process builder flows are deleted first using destructive changes. However, if the ...
12
votes
2answers
4k views
Execute an Apex class using Ant build script
We are in the process of setting up automatic build using Ant. We want to do some start up activities like read an xml file which is stored as a static resource and verify it with a custom object data ...
4
votes
3answers
952 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 ...
3
votes
1answer
3k views
How do I migrate default home flexi page assignment from one organization to another using ANT Migration Tool?
I have FlexiPage Home_Page_Default.flexipage assigned as Default Home Lightning Page for all profiles in one sandbox. I need to migrate it to another sandbox and assign as Default Home Lightning Page ...
5
votes
2answers
5k views
Apex class has Batchable or Future jobs pending or in progress
I am deploying to production using the Ant migration tool. Every class is reporting the error: Apex class has Batchable or Future jobs pending or in progress
Even classes such as StringUtils and such ...
3
votes
1answer
596 views
Using DX Scratch Orgs to deploy code with legacy ant scripts
We are considering migration of our managed package development process to Salesforce DX. But we are definitely not ready yet to transform our code base and use full potential of SFDX, but still ...
2
votes
2answers
767 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....
0
votes
3answers
795 views
refresh a production org to a starting point
I have a production org to which i deployed metadata from dev sandbox using Ant.
There is no connection between dev sandbox and production.
How can i refresh the production org to a starting point ?
24
votes
1answer
14k 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 ...
14
votes
1answer
445 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 ...
8
votes
4answers
14k 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 ...
7
votes
2answers
6k 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}"
...
7
votes
1answer
5k views
Migrating Named Credential with password
I retrieved a Named credential using Ant migration tool and in the xml it looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<NamedCredential xmlns="http://soap.sforce.com/2006/04/...
6
votes
1answer
806 views
Deploying Metadata to sandboxes using ant build
We are using subversion to commit all our meta data changes from our sandboxes. When we deploy to a testing environment, we want to get only the changed meta data which we can get from svn and ...
5
votes
1answer
4k views
Building package.xml for Continuous Integration Or Ant Deployment
I am in the process of setting up version control and automated builds using Git and ANT and eventually we might setup Jenkins for continuous integration.
My plan is to utilize Git branches by ...
3
votes
1answer
3k views
<unknown> duplicates value on record with id: <unknown>
As part of an ant deployment, to recently cleaned Org, I get the following:
All Component Failures:
1. objects/CustomObject__c.object (CustomObject__c.SomeQueue) -- Warning: Added entity: ...
1
vote
2answers
4k views
Deployment Error: Invalid field:** in related list:RelatedAccountContactRelationList
i am trying to deploy a package, i am getting 3 errors (the picture):
all these errors seem to be caused by a field called CONTACT.FULL_NAME, is that a valid field or you have another explications ...
7
votes
2answers
4k 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 ...
6
votes
2answers
9k views
Ant deployment: Error: Unknown user permission: EditPublicReports
I'm trying to get ant to deploy successfully.
My package.xml pulls in profiles such as this:
<types>
<members>Admin</members>
<members>Planning Administrators&...
6
votes
1answer
9k 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 ...
4
votes
1answer
10k views
Error: “Picklist value in picklist not found” while deploying using ANT
on my account object, I created a picklist field - testPicklist1__c. The picklist field has various values in it. One picklist value is "abc t" & its API name is "abc". I retrieved the Account ...
4
votes
2answers
2k views
Entity type 'ApexClass' is not available in this organization
During the retrieve step (trying to retrieve the code) while trying to deploy the code in the target environment I get the following error:
Retrieve warnings (1): [sf:retrieve] package.xml - ...
4
votes
2answers
4k views
How can I deploy with Ant and run tests but ignore code coverage?
My team sometimes has a release process that requires deploying multiple packages in stages. We want to make sure that the system remains stable at the end of each of these deployments by running a ...
3
votes
2answers
1k views
Unknown user permission: ChatterInternalUser while deploying the profiles
getting following error :
Unknown user permission: ChatterInternalUser
while i am deploying profiles. following the xml file :
<types>
<members>Accounting</members>
<...
3
votes
2answers
151 views
Is it possible to update and upload package upon code commit to Git?
I'm using CircleCI to run tests. I have a Git branch. After a feature is done, the work is committed and pushed to the branch. CicrleCI build and run tests.
What would be great is to update Managed ...
2
votes
2answers
9k views
Migration Tool: Object Buttons, Links, and Actions?
Not seeing anything related to these in the Metadata types documenation.
Can anyone give me an example of how these can be referenced?
2
votes
1answer
548 views
How do I create ant task to copy required package.xml filesto another directory to deploy?
I am getting a configured package.xml file from force.com IDE and while using the same package.xml file to deploy changes from another folder ANT is checking all the metadata. I know that the tool ...
2
votes
1answer
81 views
Not able to get Asset Level field permission through SOQL
I have a permission set named abc.
Permission to Asset Level field for Asset object is defined like below in abc:
I am trying to get field level permissions for abc permission set using the below ...
2
votes
2answers
1k views
Can not create Force.com site via Ant tool
Just tried to deploy new salesforce custom site via Metadata API (ant tool) and also tried Eclipse but target org returns the following message:
The Force.com Site subdomain has not been set in the ...
1
vote
1answer
1k views
How to Integrate github and Ant migration tool?
I am trying to integrate github with ant migration tool and here is the description of the problem I am facing:
I download code from Github everyday and upload to my server using force IDE by right ...
0
votes
1answer
54 views
Export records from Salesforce to deploy to another org which are useful for configurations like Custom Settings
I have retrieved the metadata from sandbox to deploy it to the higher org using ANT. ANT have created folders for all the components like objects, classes, etc.
But, it did not retrieved many records ...
0
votes
0answers
2k views
BUILD FAILED - Failed to login: Failed to send request to https://test.salesforce.com/services/Soap/u/41.0
I have ant setup running on my system from long time, Suddenly when i tried to run deployment commands in my system all were failing with below error message.
deployCode:
[sf:deploy] Note: use ...
0
votes
2answers
2k views
Deployment error - dependent.class.invalid not found
I am deploying salesforce components using ANT and I am seeing this strange error and don't know what exactly it means by. I have included all the dependent components. Please let me know if anyone ...
0
votes
2answers
18k views
How to deploy or retrieve dashboard folder?
Today I have been struggling trying to migrate reports and dashboards from developer organization to production. Looks like we can't deploy dashboard without a folder. While for reports there exist ...