Questions tagged [ant]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
31 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
25 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
39 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
41 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
61 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
47 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
51 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
125 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
64 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
31 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
40 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
91 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
55 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
175 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
189 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
35 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
128 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
24 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
153 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
93 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
84 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
79 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
25 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
778 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
237 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
79 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
100 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
83 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
107 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
742 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
48 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
25 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
765 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
6 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
645 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
43 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
24 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
373 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
167 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
101 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
37 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
32 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
29 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
292 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
62 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>...
7
votes
1answer
203 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
538 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
2 3 4 5
8