We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [ant]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
19 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
1answer
32 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
26 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
48 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
24 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
20 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
20 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
59 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
35 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
44 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
35 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
23 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 ...
0
votes
2answers
214 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
0answers
61 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
28 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
60 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
49 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
33 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
2answers
189 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
40 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
20 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 ...
0
votes
0answers
329 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
4 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.
0
votes
1answer
182 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
41 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
0answers
21 views

Ant Migration Tool - where to get a source code

We are trying to implement some additional logic on top of sf:deploy and other targets provided by Ant Migration Tool. But need to examine a source code of those targets to better understand what's ...
0
votes
0answers
114 views

java.io.IOException: The system cannot find the path specified

I am unable to retrieve Code Using Ant Migration Tool. By using Command: ant retrieve code, Getting an Error As java.io.IOException: The system cannot find the path specified error details ...
0
votes
1answer
72 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 & ...
0
votes
1answer
35 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
34 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
28 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
21 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?
2
votes
1answer
101 views

How do I retrieve all user layouts using Ant Migration Tool?

When I go to the list of User Page Layouts, I see that there are three different User layouts available in my organization Page Layout Name User Layout User Profile Layout Community Member Layout ...
2
votes
0answers
45 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>...
6
votes
1answer
150 views

Get Lightning Web Component (LWC) definition on a describe

I need to describe a Salesforce Org that contains LWC, but the JSON obtained with the command: sfdx force: mdapi: describemetadata -a 44.0 -u username does not define me the LWC that should be ...
2
votes
1answer
156 views

How to mass-deactivate 700 picklist values

I am looking for a way to deactivate 700 picklist values (not manually) I do NOT want to delete the values, only deactivate them I am trying with ant migration tool with this package.xml: <?xml ...
1
vote
0answers
95 views

Error on ant retrieve(sf:retrieve requests) INVALID_LOCATOR [closed]

I am getting this error after sf:retrieve requests status for my ant job to retrieve my metadata. Error: {http://soap.sforce.com/2006/04/metadata}INVALID_LOCATOR - INVALID_LOCATOR: Retrieve ...
1
vote
0answers
18 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 ...
0
votes
0answers
157 views

Deploy Community Builder audience page assignments with ant migration tool?

In Community Builder, if you create audiences and assign them to page variations, you cannot deploy these using change sets, according to Considerations for Deploying Communities with Change Sets. In ...
0
votes
0answers
74 views

Ant tool migration retrieve

I am getting this error after sf:retrieve requests status for my ant job to retrieve my metadata. Error: {http://soap.sforce.com/2006/04/metadata}INVALID_LOCATOR - INVALID_LOCATOR: Retrieve result ...
0
votes
1answer
150 views

While retrieving or deploying Data using Ant Migration tool Error As java.io.IOException: Access is denied

I am unable to retrieve Code Using Ant Migration Tool. By using Command: ant retrieve code, Gettig an Error As java.io.IOException: Access is denied. Attaching CMD Error Screen.` C:\Program Files\...
3
votes
3answers
1k views

Global Action Layout Metadata/Deploy

We are currently doing our deploys using Ant. In our package.xml, we have "almost" everything set to "*". We noticed that after a deployment, the Global Action layouts, as well the default values we ...
0
votes
1answer
57 views

Trouble retrieving package.xml components using ant

I am running into the error "Invalid username, password, security token; or user locked out" when I try to retrieve the components using a package.xml. I am trying to retrieve all the Apex classes ...
0
votes
2answers
170 views

Ant deployment doesn't recognize updated test classes and fails

I have a small set of lightning components and related apex classes that I'm trying to deploy using ant. The first deployment was fine. I had to make a change and updated the apex class that has all ...
6
votes
2answers
5k views

How do I retrieve Lightning Web Components using Ant Migration tool or mdapi:retrieve command from SFDX?

This is not clear or obvious how can anyone retrieve Lightning Web Components using Ant Migration tool or mdapi:retrieve command from SFDX? What is appropriate metadata API component which ...
2
votes
0answers
101 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. ...
3
votes
1answer
47 views

How to deploy Help & Training from one org to another in salesforce?

I have added some resources/links under help & training section in one org. I am looking to deploy this customization to another org. How can I achieve this?. Which metadata component I should ...
2
votes
0answers
117 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</...
0
votes
1answer
129 views

How can I retrieve LiveAgent Settings from an org?

I am using ANT to retrieve settings from a production org. I have been successful using the package file below to get LiveChatDeployment and LiveChatButton settings. <?xml version="1.0" encoding="...
6
votes
1answer
241 views

How can I dynamically create build.xml so the only tests that run are related to the code I'm deploying?

I'm looking into routing my code through Git and am wanting to do builds using Ant. However, I do not want to run all tests on each build and only want to run tests for the files that have changed ...