Questions tagged [ant]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
3k views

Permission Manage All X Depends On Permission Read All Y

Using Ant Deployment. As the title says, when I deploy I get errors on my custom profiles: profiles/Some.profile -- Error Permission Manage All Custom_Object__c depends on permission(s): Read All ...
2
votes
4answers
7k views

Ant - How to deploy a custom field on an “installed app”

We're using Conga Composer. We've added a custom field to the class "APXTConga4__Conga_Template__c" called "Template_Call_Method__c". It's a picklist. When I deploy to a new org I have to be able to ...
0
votes
1answer
6k views

Ant Migration: How to deploy 'System Administrator' aka Admin.profile [duplicate]

I'm trying to migrate from one sandbox to a dev org. An issue I'm currently having is that the field level permissions are not enabled for the System Administrator. (This org is only going to be used ...
3
votes
2answers
4k views

How can I deploy and remove components in one step with the ant migration tool?

I am familiar with how to use the destructiveChanges.xml file to remove components from my org. But it seems like I have to deploy then delete or vice versa. Is there a way to set up a package so ...
3
votes
2answers
4k views

Ant Deployment To New Dev Org

I'm trying to get my head around the "Force.com Migration Tool". I'm using the Force.com IDE in Eclipse and this has provided me with a package.xml. I have all Metadata Components selected. I've ...
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 ...
5
votes
1answer
1k views

Is there a list of every possible metadata component?

I'm looking for a list of all possible components which can be uploaded or deleted using the API. As far as I know, the top level is: classes ApexClass components ApexComponents objects ...
10
votes
1answer
324 views

Independent Auto-Number Sequence

How do I specify API 30.0's new Independent Auto-Number sequence feature for tests run while migrating code from Sandbox into Production? I see the checkbox for this on Test Options, but how do you ...
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....
1
vote
4answers
3k views

Force.com Migration Tool - How to correctly retrieve & deploy

I'm looking for some guidance on how this tool is widely used. We have the following scenario: Source: 1x Production org, with 1 (or more) managed packages installed. Targets: Multiple Production ...
3
votes
2answers
4k views

Config management for Salesforce.com - Extracting all the metadata

We are trying to maintain source code repository for our Salesforce.com project (predominantly configuration). We are using Subversion (SVN) for this. The idea is to extract all the metadata in ...
12
votes
4answers
17k 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
9k 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 ...
1
vote
0answers
334 views

ANT migration - NamedFilter

I'm trying to migrate a few adjustments to a Custom Object from sandbox to prod. One is a new "Named Filter" or Lookup Filter to another custom object. I guess I have two questions. 1) I'm getting ...
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 ...
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 ...
4
votes
1answer
482 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 ...
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
1k views

Exclude files on ant deployment

What if I want all the classes EXCEPT a few? For example, if I have a scheduled batch that definitely won't deploy, how would I say "not that" but not have to manually name all the other ones? ...
3
votes
1answer
225 views

ANT Deployment for SFDC

Is there a way to ignore package.xml while deploying changes via ANT in Salesforce.? We only want the ANT engine to consider the folder structure mentioned within the root directory of the deploy ...
3
votes
2answers
537 views

Is it possible to update managed package contents using Force.com Migration Tool (ANT Tool)

Is it possible to update managed package contents like apex class/trigger of an installed instance of a package authored by another publisher using Ant Tool using deploy target? If then how to give ...
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
0answers
823 views

Error while deploying to a sandbox using ant

I am trying to deploy config data from one sandbox to another sandbox using ant. I am getting 2 errors always. Error: Could not resolve list view column: IDEA.IDEA_THEME (line 78, column 16) We dont ...
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 ...
2
votes
4answers
3k views

Correct sequence to setup ant to deploy salesforce metadata

We are in the process of setting up ant to deploy our configuration changes across our environments to production. We are using changesets at the moment. We use standard objects, custom objects, ...
2
votes
1answer
3k views

Error in deploying letterheads using ant

I tried to deploy letterheads metadata file to a development sandbox using ant build sf deploy. The deploy task fails with an error message stating that no Document named Letterhead_Logos/...
14
votes
3answers
20k views

Why am I getting a not in package.xml error on custom fields when the custom object is in my package.xml?

Question Doing a deployment with ANT that includes some apex and a custom object. However, when I test deploy I'm getting errors about fields not being in the package.xml. Has something changed ...
1
vote
1answer
401 views

how to building ant scripts which would bypass apex scheduled jobs

We are in the process of building ant scripts for our deployments. We have scheduled apex jobs which run every 3 minutes to process some functions and currently our deploy targets are failing because ...
9
votes
1answer
12k 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 ...
10
votes
1answer
4k views

Is it possible to deploy workflow rules and field update actions which reference PersonAccount record types?

I am performing a deployment from one sandbox to another using ant. The sandboxes both have PersonAccount functionality enabled. The source org has a PersonAccount record type with the name of HCP and ...
5
votes
1answer
645 views

How to detect ant retrieve failure in script?

Question Is there a way to detect if an ant retrieve call fails due to a login issue? Background I've got a pretty basic bash script that uses ant to retrieve the latest changes from our production ...
9
votes
2answers
2k views

Ant Migration Tool - Not retrieving Task fields

I'm not able to retrieve any custom fields on the Task object. I'm able to get Contact custom fields fine. These fields are included in a managed package, but I don't understand why the Contact ...
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 ...
10
votes
2answers
1k views

Unable to deploy code to Sandbox as installed Managed Package test methods are failing

I am using ant tool to deploy code to Sandbox which has Managed package test methods failures. Build error shows the validation rule message. Build is executed by Jenkins schedule job, so turning on ...
3
votes
2answers
417 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 ...
4
votes
1answer
1k views

Ant build script to commit files to subversion automatically every day

We have a development environment where we do not have a direct way to access our subversion repository within our network. SO we need to login to a vm machine and check out the code. To avoid this, ...
5
votes
1answer
894 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 ...
6
votes
2answers
3k views

Unable to use destructiveChanges.xml with multiple developers

(Sorry, long post) We have a team of 4 developers, each with their own DE org We are struggling with propagating destructive changes between orgs. From our reading of the docs, we should be able to ...
4
votes
4answers
2k views

Profile Login IP Ranges via API

I need to analyze the login ip ranges for profiles across multiple orgs on a frequent basis. Previously I've been accomplishing this with an Ant retrieve call to get all the profiles and parsing the ...
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 ...

1
4 5 6 7
8