Questions tagged [ant]

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

105 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
863 views

How to dynamically retrieve ANY report in a folder using package.xml

In ANT or Eclipse I want to retrieve ALL reports of a given folder WITHOUT declaring each report in package.xml line-by-line expressis verbis. What Eclipse is generation, when I subscribe to a folder ...
6
votes
1answer
1k views

error deploying entitlement process via ant migration tool and changeset

I'm trying to deploy a new version of an existing entitlement process from one dev sandbox to a full copy sandbox using the ant migration tool. <Package> <types> <members&...
6
votes
2answers
2k views

How to do incremental builds in Jenkins using ANT Migration Tool

I am able to run ANT build in Jenkins , how can I configure Jenkins to only build recent revisions or to skip commits which were build in previous run. By build , I mean to deploy changes to other ...
5
votes
1answer
153 views

Default permissions that are granted when using InstalledPackage?

I have been using InstalledPackage for a while now as a quick way to install managed packages in different orgs without having to log in. It appears that the default permissions that are granted is ...
4
votes
0answers
80 views

Delete Profile settings via migration tool?

I'm trying make changes within a box, and I can see how to change settings via the migration tool, but I'd like to delete all loginIpRanges for a certain profile. Is this possible? I attempted ...
3
votes
0answers
1k views

Report Type – Ant Deployment Errors (Invalid Field Name & Duplicate Value Found)

I am trying to deploy Reports and Dashboards via Ant tool. I get this error for Report Type reports/JMT_Reports/Expiry_and_Renewal_Status.report -- Error: Invalid field name: Lease_Unit__c$...
3
votes
0answers
2k views

Ant profile deployment - You cannot deploy to a required field Object_Name__c.Field_Name__c

I am getting the below error when I am trying to deploy a new profile: You cannot deploy to a required field Object_Name__c.Field_Name__c. I saw the solution posted here: Force.com IDE profile ...
3
votes
0answers
717 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 ...
2
votes
0answers
35 views

ant won't set sharing OWD on new objects?

I am using ant migration tool to deploy a new custom object to a target. This object has external sharing OWD set to Private. I've verified this in the object metadata. <externalSharingModel>...
2
votes
0answers
91 views

deploy LeadConvertSettings

I'm new to ANT. I've seen some great threads on how to retrieve LeadConvertSettings, but I'm wondering if it is possible to deploy changes so that specific custom fields are no longer "mapped" (e.g. ...
2
votes
0answers
81 views

insufficient access rights on cross-reference id while deploy sharing rules

Getting the error while on deploy package with sharing rules. ... <sharingCriteriaRules> <fullName>Access_Refund_UK_Supervisor_UK</fullName> <accessLevel>Edit</...
2
votes
0answers
26 views

Profile Mapping when installing a managed package using Ant

When installing a managed packages via Ant, is there any way to map managed package profiles to profiles that already exist in the Salesforce org? I have the following profiles in the Salesforce Org. ...
2
votes
4answers
2k views

Visual Studio Code - Retrieve Org

I'm a new at a company that does not have their org backed up. I'm trying to get it into github. I'm working with VSC and I added the ForceCode extension but it fails to pull standard objects. Could ...
2
votes
0answers
1k views

Case Status new picklist value deployment error through metadata api

We are trying to deploy some new picklist values on the Case object, on the standard Status field. One of them is the value "On-Hold" included on a new Support process, called "Support" which we are ...
2
votes
0answers
57 views

Force.com Migration Tool “Validate Only” causing later compilation errors

We just implemented a new process in our development cycle where code that has been completed is validated against a target org to check that no packaging specific rules have been violated (such as ...
2
votes
1answer
952 views

How to retrieve Wave Source files from Eclipse/Ant tool?

I want to retrieve/fetch Wave Source(WaveApplication, WaveDashboard, WaveDataset and etc) files from Eclipse/Ant Migration tool. I tried many times but not getting any single component file. I am ...
2
votes
0answers
632 views

Ant Migration Tool: INVALID_OPERATION - INVALID_OPERATION:Too many files in zip

Now I'm trying to deploy bunch of custom objects to my Developer Org. using Ant Migration Tool. All these custom objects are from our Production org, and the final goal is to setup CI in our ...
2
votes
0answers
206 views

How to deploy URL encoded picklist values in record types through ant?

In the metadata the picklist definition has the not URL encoded values of: A $100 million+ B $50 - $99 million And in the record types definition the values have been automatically URL encoded ...
2
votes
0answers
511 views

Removing and Adding a namespace prefix character through ANT deployment

I want to retrive a metadata from a org when we will create the package. I can able to retrive but after retrival in few places of the component like formulas the namespace prefix is added 'Test__' ...
2
votes
0answers
99 views

List Metadata Missing CaseComment?

Are there any restrictions on which standard objects are returned with a list metadata call for CustomObject or Workflow? Taking a stab at fixing a mavensmate bug which builds it's project manager ...
2
votes
0answers
22 views

Using Apache Ant to deploy through firewalls

I'm wondering if anyone has much experience with using the Apache Ant command line for deploying code into their sandbox. We had this working great but recently our wonderful network administrators ...
1
vote
0answers
14 views

How to rollback metadata changes using Jenkins and bash script

I am working on a project in which I have to rollback the metadata components which we have deployed into destination org using Jenkins. Does anyone have built this kind of project / Scenario. Steps ...
1
vote
1answer
47 views

Azure DevOps with Ant for deployment questions

We are trying to implement our CI/CD with Azure DevOps (Pipelines) but we are facing a couple errors. Basically we were trying to created just one build.xml and one build.properties files and ...
1
vote
0answers
15 views

How to reset a label in a CustomObjectTranslation back to its original value using the Ant Migration Tool?

I use a Case object with a custom field having an API Name of ExampleField__c and a Label of Example Field. Lets say I have a translation file for a Case object and there's a section for the Example ...
1
vote
0answers
258 views

Ant release Lightning page with components from managed package

I am trying to release my changes from Sandbox to Production using Ant. I have created a page using the Lightning App Builder containing components from a managed package. When releasing the page, ...
1
vote
0answers
154 views

Issues with Case Business Process Picklist values while using Ant

Were doing a first time deploy of code to a QA box and for some reason I keep getting errors about Picklist values not present. I can see them in the Case object under the BusinessProcess section, ...
1
vote
0answers
101 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 ...
1
vote
0answers
335 views

Managed Package: Differences between quick actions and “Error: Cannot modify managed object: entity=QuickActionDefinition”

I have got a managed package, which I install on developer org to test it. After installation I can surely see the differences between the quick actions, which I've on my testing org and on the org ...
1
vote
0answers
18 views

Ant Migration Tool - Only show test names in log

I'm setting up a CI/CD workflow for Salesforce using Jenkins and the Ant Migration Tool. I'd like to be able to quickly glance at the console output and/or log and see the names of tests that are ...
1
vote
0answers
281 views

How can I view my test classes debug logs of an ant deploy

I have about 20 classes that I deploy to production via ant. Some of my test classes fail. I want to view the debug logs but I cannot find the way to look at the logs of my ant deployment. Any help ...
1
vote
1answer
821 views

Jenkins CI with Salesforce: how to generate package.xml which only contains changed metadata files

To automate our salesforce development flow, we are using Git + Jenkins + Ant to deploy all committed changes to target organization. It works fine! But the only big problem is that all metadata files ...
1
vote
1answer
293 views

How to Migrate Assigned Connect App thing in Permission set?

We have assigned DataLoader Bulk, Dataloader Partner & Workbench connected app to a permission set in our DEV sandbox. But while retrieving permission set using below package.xml (with ant), ...
1
vote
0answers
234 views

How to deploy unmanaged package using the ANT Migration Tool

We are trying to deploy an unmanaged package we are developing within a Developer org to a separate sandbox using the ANT Migration Tool. Im using the following to retrieve the package... <target ...
1
vote
1answer
403 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 ...
1
vote
1answer
142 views

“Previous load of class failed”, “Invalid type” for inner interface

I'm experiencing the following error during the test phase of a (check-only) ant deployment: line -1, column -1: Previous load of class failed: ComplimentaryTestDomain: line 1, column 75: ...
1
vote
0answers
60 views

Fields of an Object retrieved using Ant has <encrypted> property

I retrieved an object using ant tool using retrieveUnpackaged command.I retrieved this from a higher environment of my project.. say the SIT environment(Full Sandbox). On looking at the fields( text ...
1
vote
0answers
43 views

How to change the lead layout to default layout using ANT

I have a requirement to enable the default button for Lead Layout using ANT tool. This is my Package.xml file <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/...
1
vote
0answers
421 views

Ant Migration tool - Failed to login

I am trying to retrieve code from salesforce using ant salesforce mignration tool but I am seeing below error. I am running this from a office firewall C:\Continous Integration\sample>ant ...
1
vote
0answers
1k views

INVALID_CROSS_REFERENCE_KEY: invalid cross reference id on Ant

Recently made some changes to some of objects turning some from formulas to number fields and vice versa. I added DestructivechangesPre.xml to delete those fields (and in a more extreme manner, after ...
1
vote
1answer
291 views

How to enable permission for creating ContentAsset in Bolt Template?

I'm trying to deploy a Bolt Template using ANT. I am able to successfully deploy the template from one dev org into another new dev org. But when I go to deploy into a different org, I run into this ...
1
vote
0answers
76 views

convert ANT script to Java

I have been digging for almost a week into the forums and S/F Developer pages for good "basic" Java code to retrieve a package from one ORG and Deploy to another ORG. I have had success building the ...
1
vote
1answer
403 views

Jenkins + Ant Migration Tool: Caused by: com.sforce.ws.ConnectionException

I'm trying to configure deploying my sfdc metadata using JenkinsCI but in case I see next error: deployCodeCheckOnly: parsing buildfile jar:file:/usr/share/ant/lib/ant-salesforce.jar!/com/salesforce/...
1
vote
0answers
71 views

Is there any way to disallow the '$' character in a Salesforce password?

Is there any way to prevent certain characters from being used in Salesforce passwords? Specifically, the '$' character causes problems when using ANT for continuous integration, as this symbol ...
1
vote
1answer
50 views

Unable to retrive the FLA permissions for Standard field “BusinessHoursId” on Case object

I am trying to retrive the FLA permissions for a Case object standard field "BusinessHoursId" by using below package file content,but the Admin profile which i retrive didn't contain the FLA of "...
1
vote
0answers
26 views

Testing whether an org is available for deployment

Are there any command line methods (Linux/Metadata API'ish) that will tell you if an org is available to be deployed to? I'm assuming an org can only have one deployment at a time via the Metadata api,...
1
vote
0answers
56 views

Difficulty managing access to Document using Profiles and the Metadata API

We are having trouble managing the permissions associated with Document via the Metadata API. We are using ant to both deploy and retrieve the metadata files. In order to deploy successfully we can: ...
1
vote
0answers
157 views

Jenkins job for Salesforce deployment printed the -Dsf.password in console

Am using the Jenkins to do the Salesforce deployment. Build is parameterised. When I sun the ANT build for deployment, in console I could see the passport printed by the Salesforce ANT command. Is ...
1
vote
0answers
403 views

Ant retrieve doesn't include specific quickactionlistitem in layout metadata

We are using a simple ant script to retrieve certain types of metadata in our org, including various page layouts. On one such layout, we have some quickactions. We've noticed that when using the ...
1
vote
1answer
138 views

Public and Private key Encryption in ANT

We need a solution for storing salesforce object's data as flat files in a S FTP folder as .csv files. But salesforce is not supporting to send files to S FTP/FTP. So we are trying to build a solution ...
1
vote
2answers
170 views

Regarding Sandbox Refresh

Currently, I've to refresh one of my Developer sandbox as it has become little outdated. But I don't want to lose data. This is because There are too many objects having relationships. So creating ...