Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [ant]

Apache Ant is a software tool for automating software build processes.

Filter by
Sorted by
Tagged with
23
votes
4answers
16k 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
2k 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
12k 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 ...
11
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 ...
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 ...
4
votes
3answers
403 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
2k 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 ...
4
votes
2answers
4k 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
460 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
702 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
566 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 ?
20
votes
1answer
9k 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
425 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 ...
6
votes
1answer
709 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 ...
6
votes
2answers
4k 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}" ...
5
votes
1answer
3k 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 ...
4
votes
1answer
3k 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/...
3
votes
1answer
2k 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: ...
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 ...
4
votes
2answers
2k 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 ...
4
votes
1answer
7k 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
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 ...
3
votes
2answers
110 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
7k 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
408 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
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 - ...
2
votes
2answers
700 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> <...
1
vote
1answer
876 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
0answers
998 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
9k 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 ...