Questions tagged [ant]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
50 views

How to deploy Opportunity Stage picklist using Apache ANT Tool?

How can I deploy the Opportunity Stage picklist of my Sandbox to production? I've retrieved it with ANT but can't deploy it... I've retrieved from the sandbox, changed some text in the description and ...
1
vote
1answer
26 views

How to retrieve changes in default community login page via ANT?

I'm having a small issue retrieving changes in a community. I have a customer community in which I use the standard or default login page. I changed the logo and the colors of the standard page in ...
0
votes
3answers
68 views

Run Specific Test Classes Ant Deployment Tool

I am using ANT deployment tool on Salesforce to run specific test classes. For an example, my build.xml looks like below. <target name="deployCode"> <sf:deploy username="${sf.username}" ...
1
vote
2answers
37 views

Speed up/optimise build time (ant deployment)

I have a build/ant deployment related question for which I did not find any reasonable answers with a google search, hence posting the question here. I have around 9 individual repositories where one ...
1
vote
1answer
25 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....
0
votes
1answer
17 views

Deploying Profile with new class access using ANT

I need to deploy a new class with profile access. Is it fine to include only that class in the profile metadata while deploying and it wont override the existing access or Do we need to consider all ...
1
vote
1answer
40 views

Why can't I deploy a Process Builder referencing a Custom Metadata in a Formula?

I created a Process Builder in which I reference a Custom Metadata from a Formula inside of the "Update Record" action. It works fine on a Environment 1, but I have trouble with deploying it to ...
0
votes
1answer
27 views

Deploy Salesforce components using Ant and a manifest

My question here is based on this: Deploy Selected Classes with Ant But since that question has seven years, is there a better way to deploy metadata components with Ant using a manifest.xml to ...
0
votes
1answer
162 views

Unknown type name 'SurveySettings' specified in package.xml

I have retrieved source with a package.xml which includes following segment <types> <members>*</members> <name>Settings</name> </types> <version>...
1
vote
1answer
143 views

“Invalid literal value for picklist:” Error when deploying WorkflowFieldUpdate via ANT

Workflow Field Update is failing to deploy/validate due to the following error: Invalid literal value for picklist:<yourPicklistValue> What causes this?
0
votes
1answer
215 views

Ant Invalid username, password, security token; or user locked out

I am using ANT to build an xml file but get the following error: Error:[LoginFault [ApiFault exceptionCode='INVALID_LOGIN' exceptionMessage='Invalid username, password, security token; or user ...
0
votes
1answer
61 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 ...
0
votes
2answers
23 views

Fetching standard object through ANT

I am facing a validation rule related issue on a field in Case object. To find the exact problem, I need to search every validation rule for each field. To do that I am trying to fetch the Case ...
1
vote
1answer
60 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 ...
1
vote
0answers
231 views

Build.Xml (deployCodeCheckOnly) Issues when building with Ant and Azure DevOps

HI when I try to do builds with Azure DevOps Pipielines I run into an issue where : antlib:com.salesforce Could not load definitions from resource com/salesforce/antlib.xml. It could not be found. ...
1
vote
0answers
111 views

Hide user name and password from build.properties in ANT

I have created build.properties and build.xml for the ANT setup to retrieve components. build.properties looks like below: # build.properties # # Specify the login credentials for the desired ...
0
votes
0answers
42 views

is Sharing rules get recalcuated on deployment of Same OWD

I have one repository where i have OWD for account,contact and some other custom objects which is same as in salesforce org. Is Sharing rules getting recalculated if I deployed the same OWD. Please ...
0
votes
1answer
49 views

deployment error for Entilement object

I'm trying to deploy entitlement object meta data, layouts, and fields through ant tool. However, I keep getting an error: Invalid fullName, must end in a custom suffix ( for ex. __c ) Anybody ...
0
votes
0answers
9 views

ANT Deployment override layouts even if I run a new deployment with an org backup

Context: I have 4 dev sandboxes. 3 sandboxes (dev1, dev2, dev3) for each developer and one sandbox (dev) with all changes made by all developers. I make deployments automatically using Ant + Jenkins. ...
0
votes
1answer
174 views

Deployment Error [CustomApplication Service_Console] The value you specified for RecordType is invalid or doesn't match the object you specified

Hello community I am facing the below error [CustomApplication Service_Console] The value you specified for RecordType is invalid or doesn't match the object you specified. I have added to the ...
1
vote
1answer
79 views

Deployment issue with knowledge page layout required fields

I have custom field on Knowledge object. And made that custom field as required on Knowledge page layout. When I deploy using ant from one sand box to another that custom field is not effected(means ...
0
votes
2answers
280 views

ANT Migration Tool Issues - Failed Login: API security token required

I am getting the following error when using the ANT Migration Tool to retrieve/deploy to our org's full sandbox. "Failed Login: API security token required " However, our org does NOT use Security ...
0
votes
0answers
32 views

Getting “ duplicate value found: Booking_Id__c duplicates value on record with id ” '' Error

I deployed changes from dev org to full sandbox successfully by ANT. Now I am getting Error as "Booking_Id__c duplicates value on record with id: 'ID' ERROR" while creating the new record. Previously ...
2
votes
1answer
303 views

“Metadata Through Metadata API Functions” permission Not Working

I want to make a permission set such that a user only has Metadata Access and preferably only Read-Only Metadata access through Ant. The idea is I want to make a "Backup Metadata" user. I do not want ...
0
votes
1answer
51 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 ...
0
votes
0answers
182 views

How to resolve deployment error: “Error: You may not turn off permission Read PartnerFundClaim for this License Type”

Using Salesforce Migration Tool (Ant) and whislst deploying a profile, I am getting this error: [sf:deploy] Component Failures: [sf:deploy] 1. profiles/My Custom Profile.profile -- Error: You may ...
0
votes
1answer
26 views

What is the API name of system permission for analytics?

What is the API name of the system permission View Analytics on Communities pages? This system permission is not getting retrieved from my org.
0
votes
2answers
204 views

ANT: Failed to process the request successfully. Cause(UNKNOWN_EXCEPTION): INVALID_CROSS_REFERENCE_KEY: No package named 'Retrieve1Objectpkg' found

I keep getting the above error. I am trying to retrieve one custom object and the CLI keeps saying that the package is not found. Based on the prompts, it seems that I need to have a value for package ...
0
votes
2answers
159 views

Error while deploying new Public Group using ANT

I'm getting the following error while deploying into my Sandboxes using ANT: 2019-09-19T15:15:28.4944305Z All Component Failures: 2019-09-19T15:15:28.4945450Z 1. groups/Service_Desk_Users.group -- ...
1
vote
0answers
94 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
2answers
111 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?
0
votes
1answer
30 views

Ant logs from deployment and validation in java app

I have a problem with logs from ant command. When I run command in CMD i see step by step progress of deployment or validation but when I execute the same target in my java app I do not see mentioned ...
1
vote
1answer
1k views

Salesforce deployment using Ant and SFDX

Our project is in this format after using sfdx force:mdapi:convert -r src it converted to this which doesnt have package.xml Using sfdx force:source:convert converted project to this format with ...
0
votes
1answer
362 views

Failed to send request to error in ANT

Getting this error when trying to retrieve package using ANT - I have moved the ant-salesforce.jar file into the lib folder and I have set the proxy BUILD FAILED C:\ANT\build.xml:34: Failed to ...
0
votes
0answers
135 views

No Custom Field named found Custom report type

I have a custom report type of category Accounts & Contacts, on running the Jenkins build, I am receiving the following error. The field mentioned here reportTypes/...
0
votes
0answers
121 views

Error while deploying using Ant - (ProfileName.userCanEditRecordTypeSettings error)

Our deployment started to fail with the following error. Has anybody faced the issue as well? I wasn't able to find much about it out there or here.... Thanks. deployCodeCheckOnly: [antlib:com....
0
votes
0answers
109 views

Quick Deploy via ANT Not Working - UNKNOWN_EXCEPTION: invalid parameter value

I am attempting to use the Quick Deploy functionality through the metadata API, using the Ant Migration tool, and it is not working for me. I have setup a Jenkins job that passes the sf.​...
0
votes
0answers
175 views

Removing controlling field values (picklist dependencies) during deployment

We have multiple orgs on which we are running deployments using jenkins and ant deployment tool. We have problem when removing dependencies during deployment. So basically I'm able to remove ...
1
vote
3answers
1k 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
1answer
57 views

Checking previous metadata deployments

So I'm playing with deploys using the metadata API and I have 2 questions. I noticed that when you deploy using metadata the deploy name in "Deployment Status" is just an Id, can I change the name? I ...
0
votes
0answers
29 views

Can SFDX report files that were specified in the package.xml that do not exist in the org similar to ANT

I'm working on switching my development toolkit from ANT and MavensMate to SFDX's VSCode plugins. I attempted to do a retrieve and deploy using force:mdapi and everything returned successfully ...
1
vote
0answers
1k views

Deploying lightning app Using Ant throws Error: In field: utilityBar - no FlexiPage named “test_UtilityBar” found

I got Following when I retrieve The app <?xml version="1.0" encoding="UTF-8"?> <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> <actionOverrides> <...
0
votes
0answers
7 views

Show Analytics tab in lightning app menu for a particular profile

What would be the metadata name for showing Analytics tab to a certain profile. Need to deploy the changes using ANT. Any help/pointers are appretiable.
2
votes
1answer
982 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 ...
0
votes
0answers
44 views

What is the name for the following to be used in XML. Pushing the following using ANT migration tool

I am using ANT to deploy the Profiles to next sandbox but I am not able to find the name to be used for following in the xml file. The following are available in Profile ->System Permissions Access ...
0
votes
1answer
218 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 & ...
1
vote
1answer
161 views

Ant deployment job fails: Cannot update a field to a Formula from something else

We have two custom fields: Opportunity.PrimaryProduct__c(lookup onto CustomObject__c) Opportunity.ProductFamily__c(lookup onto CustomObject__c) Any of them don't being referenced from any place in ...
0
votes
1answer
38 views

Deployment using Ant tool

After setup ANt in enviorment variable, i am checking ant version for testing its path is correctly set or not. It's showing version no. along with error "tools.jar" is unable to locate. Do i ...
0
votes
1answer
34 views

Retrieving packaged(Managed ) objects custom fields into Eclipse with Force.com IDE to deploy to another org

I added the following code in package.xml <types> <members>SCSCHAMPS__Job__c</members> <name>CustomObject</name> </types> But, After I am trying to deploy this ...
1
vote
0answers
33 views

Default recordtype setting based on profile in package.xml [closed]

I am trying to change my default record type for every profile using ANT. Can someone help me how to retrieve the data using package.xml?

1
2 3 4 5
8