Questions tagged [ant]
Apache Ant is a software tool for automating software build processes.
415
questions
-1
votes
1
answer
20
views
How to Create a Test Suite in Salesforce Using ANT Without Using the Developer Console?
I'm looking to set up a comprehensive test suite in Salesforce using ANT, and I want to perform all the tasks without relying on the Developer Console. Can someone provide guidance or a step-by-step ...
-1
votes
0
answers
41
views
Deployment of Profile vs Permission Set - strange behaviour
I have tested deploying (using ANT) permission set and profile which for metadata was containing only 1 field i wanted to update access for.
The results was that the field was updated for both profile ...
0
votes
0
answers
24
views
Running Apache ANT on macOS 13.5.2 Homebrew (MBP M1)
I am trying run Apache ANT tool for deploying packages from partial to production.
Once I try and run ANT tool in terminal, this error pops out:
override Ant's normal entry point/bin/ant: File name ...
0
votes
1
answer
34
views
Ant Migration Tool: How to deploy metadata in source format
We are heavily relying on ant to do manual deployment and CI/CD in one of our projects.
But now time comes when we need to migrate from 1gp to 2gp package, thus we would need to switch from classic to ...
0
votes
1
answer
168
views
Error While Deploying Schedule Trigger Flow
While Deploying the Schedule Trigger Flow I am getting the following error :
This flow can't reference $Record because its trigger type is None. Change the trigger type, change the flow global ...
0
votes
1
answer
53
views
Can we retrieve ContentDocuments aka Files using ANT migration tool in Salesforce? [duplicate]
I have been trying to retrieve ContentDocuments/Files
using the following package.xml in ANT
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap....
0
votes
0
answers
74
views
Coding error when deploying with ant migration tool
I am trying to deploy using the ANT Migration Tool to a test environment before pushing this file to the master branch. However, when running the "ant deploy" command I get the following ...
0
votes
1
answer
221
views
Unable to deploy a report folder with ant
Hello,
I try to deploy a report folder (not reports inside because sharing is modified) by using Ant but I get an error message:
Error parsing file: Element
{http://soap.sforce.com/2006/04/metadata}...
0
votes
1
answer
37
views
Setting up ANT facing issues
I'm trying to setup ANT in my system but it is not working well. I tried and reverified the variables and checked everything still it doesn't work. I even checked if the path is fine via CMD which are ...
0
votes
1
answer
38
views
how to pass multiple requestIDs to cancelDeploy() in ant migration tool
I have multiple deployments queued/stuck in one org that i want to cancel. I tried using ant migration tool's cancelDeployment method but it only allows one Id at a time, as per the document.
"...
0
votes
1
answer
127
views
Trying to delete Apex with ANT Migration Tool - INVALID_SESSION_ID
I am trying to delete 2 Apex classes and 2 inactive Apex triggers from a production environment using the ANT Migration Tool and I am stone-walled by an INVALID_SESSION_ID error, but I suspect there's ...
1
vote
1
answer
2k
views
Deployment of Flow with Formula Entry Condition
I have created a Record triggered flow that is after create or update. My flow is using the new Entry Condition of "Formula Evaluates to True" as shown below and is API Version 55.
I am ...
1
vote
1
answer
118
views
Ant migration tool - keep track as Change Set
Is there a way to deploy meta data through ant migration tool and keep track of this deployment in salesforce?
In the same way as change set appear as inbound change set.
thanks,
0
votes
1
answer
117
views
Installation steps for Salesforce ANT migration tool (apache ANT) on Linux machine
i need to install Apache ANT and Salesforce ANT migration tool on the Linux machine.
I have downloaded both zip files and installed the java JDK 11 version. How can i set up the environment variables ...
0
votes
1
answer
307
views
Multiple sibling folders for apex classes when deploying with ant?
How would I set up my build file so I can split up apex classes into sibling folders inside src?
Currently, I got deployRoot = "src" set up in the build file, and I assumed that ANT can ...
0
votes
2
answers
2k
views
ANT Mac OS install
I am trying to install ANT on a Mac laptop.
I installed Java 8
Then downloaded ANT and unzip it to /Users/ANT/
In .bash_profile I put export PATH=${PATH}:/Users/ANT/bin
But when I try to call an ant ...
0
votes
0
answers
71
views
Salesforce Profile deployment
I have some issue with one profile deployment. For deployment we are using Ant Migration Tool. In Pull Request we have some properties set up as false, in package for deployment also, but after ...
1
vote
1
answer
715
views
Merge picklist value for a record type into metadata API
Hello,
I work on a project with visual studio code (source format) and we use Bitbucket to stock metadata (metadata api format via Ant migration tool).
I added a picklist value for a specific record ...
0
votes
1
answer
320
views
Can't deploy Tableau Dashboards using ANT - No Version Mismatch
To start with, I'd like to say that I have the same SF version between the source and the target orgs (Spring 22).
I'm trying to deploy a group of Einstein dashboards, and also dataflows, datasets and ...
5
votes
1
answer
5k
views
Deploying destructive changes using SFDX with --sourcepath flag
I've seen that finally destructive changes in SFDX deployments have been added - starting from version v53.0 (previously I needed to use ANT because of lack of this functionality).
I have tested this ...
0
votes
1
answer
902
views
Unsupported metadata that cannot be deployed thru Metadata API
I'm in the process of deploying metadata from one org to a completely unrelated org that is downgrading from Unlimited license to Enterprise. I've read the documentation on the unsupported metadata ...
0
votes
1
answer
98
views
I need community perspective in regards to Jenkins Salesforce CI setup for deployments with ant Migration tool
I could not invoke ant from Jenkins.
I am new to this CI/CD, I was able to invoke ant from cmd but I could not do it with jenkins. If I need to upload futher code, please let me know.
The error is ...
0
votes
0
answers
20
views
Profiles deployment & Ant [duplicate]
This may be a noob question but please point me in the right direction. I'm interested to know how does the profile object is deployed so that it doesn't overwrite the parts that are not deployed.
For ...
0
votes
1
answer
184
views
Deploying to Scratch Org in Jenkins pipeline with ant
I have a Jenkins script to generate a scratch org, make a user for that scratch org along with a password. When I try to deploy using that username and password I get
build/lib/deploy.xml:26: Invalid ...
5
votes
1
answer
637
views
CustomObjectTranslation invalid characters
I'm trying to use Ant to deploy some changes to a sandbox that has been updated to Winter '22.
I'm getting 2 errors from 2 different custom objects that
.objectTranslation -- Error: Invalid characters ...
1
vote
1
answer
168
views
Effective and efficient deployment [closed]
Goal: Identify changes related to a requirement, deploy and verify successful deployment within 30-60 minutes (Ideally 10 minutes). This should include any Apex code, profile, permission, field ...
0
votes
0
answers
67
views
Ant migration tool delete classes
I am using standard build file and want to delete some classes. But all files from folder must be in package, right? So to delete i need to move files to another folder, deleter them from folder and ...
0
votes
1
answer
239
views
Using ANT to migrate picklist updates
I have a picklist with 3 values: A, B, D.
In my Sandbox X, I edited 'D' to be 'C' both value and label. This made all existing records using 'D' to now show 'C'.
When I deployed the picklist from ...
1
vote
1
answer
2k
views
System Administrator can not see custom field even when FLS is configured correctly
My user has the System Administrator profile. When I go to Object Manager > Task > Fields and Relationships I can only see standard fields, but not any of the custom fields that this object has, ...
0
votes
1
answer
858
views
Ant deployment: Error: Unknown user permission: AIViewInsightObjects
I'm trying to deploy the admin profile from ant successfully.
My package.xml is such as :
<types>
<members>Admin</members>
<name>Profile</name>
`
I am deploying ...
0
votes
0
answers
93
views
Not able to set up ANT Migration Tool
I am trying to set up the ANT Migration Tool on my Windows Laptop (Windows 10 64 bit).
I have set the ANT_HOME, JAVA_HOME, and PATH but still, I am getting the error
'ant' is not recognized as an ...
1
vote
1
answer
92
views
Migration issue from sandbox to dev org during package creation
I am planning to create a managed package. Since managed packages cant be created in sandboxes , I created one dev org and tried to move the Profiles and Objects from my sand box to Dev org. But I am ...
1
vote
0
answers
242
views
How can I resolve circular dependencies in Ant destructive changes
Trying to change a field type, that fieldtype is referenced by a page, which is referenced by a weblink, which is referenced on a layout. I'm attemptiong a destructiveChangesPre.xml to take them out ...
0
votes
2
answers
1k
views
Destructive changes for all apexclasses and components
I want to delete all the LWC components and Apexclasses using destructiveChanges.xml. I tried with
<types>
<members>*</members>
<name>LightningComponentBundle&...
0
votes
1
answer
227
views
Export records from Salesforce to deploy to another org which are useful for configurations like Custom Settings
I have retrieved the metadata from sandbox to deploy it to the higher org using ANT. ANT have created folders for all the components like objects, classes, etc.
But, it did not retrieved many records ...
1
vote
1
answer
390
views
When is it correct to use a <fullName> tag in a package.xml? What is the benefit of 'naming' an unmanaged package?
I am working on a project that involves deploying a sequence of Managed Packages and unmanaged packages (using an ant deployment).
As I was onboarded to the project, I noticed the unmanaged package....
3
votes
0
answers
98
views
Error "permissionsets/MYPERMSETNAME'S.permissionset -- Error: insufficient access rights on cross-reference id" when deploying using ANT
We are currently using Azure Pipelines as our tool for CI/CD.
For our Deployments, we are currently ANT and everything was working fine until we added "Permission Sets" and "Profiles&...
0
votes
0
answers
44
views
Dataloader stopped working after installing Ant [duplicate]
I installed Ant and after this, Dataloader stopped working - when I run Dataloader then this window is popping out:
After this, about there is line "The system cannot find the path specified.&...
5
votes
1
answer
455
views
Deployment is failing due to "weird" character
Our admin created a new picklist field (Client_Temperature_Status__c) on the Account object and the values added are actually emojis selected using the Emoji Picker on Windows.
Here are the values ...
0
votes
1
answer
565
views
How to retrieve the Type field on the Event object?
Type is a standard picklist field on the standard object Event and I want to retrieve the field as I made a modification to the picklist values but I am unable to retrieve it when I retrieve the event ...
1
vote
0
answers
2k
views
How to Deploy Inactive Duplicate and matching rule
Before Data migration, we perform some pre-steps to migrate the data (data from source to destination Should be same)
Deactivating duplicate and matching Rules is one of the steps we perform as the ...
0
votes
1
answer
528
views
error ANT deploying flow which uses Winter '20 features
I edited and tested two flows in my SB that they now use the new Flow winter '20 feature whereby in 'Get Records' step I am letting SF automatically define the record variable (getCandidateQnRecord) ...
0
votes
1
answer
1k
views
Error: Unknown user permission: ManageSandboxes
When System Administrator profile is deployed through metadata, got the following error.
Unknown user permission: ManageSandboxes
Then I logged into my target organisation and checked Setup -> ...
0
votes
0
answers
252
views
Ant validation/deployment errors using sessionId
I have a weird problem with Ant setup on CI. I have a script that fetches access token using JWT. The token is retrieved successfully, and when I want to use it with Ant deployment (switching in ant ...
1
vote
0
answers
431
views
Deploy with BitBucket pipelines and ant migration tool - commit hash of last successful build
I am using ant migration tool in bitbucket pipelines to deploy metadata into Salesforce instance. This pipeline runs for every commit pushed to master branch. The build process takes a considerable ...
1
vote
1
answer
91
views
Ant salesforce.jar extensions
I was trying to find some informations about running scripts after ant deployment and I found this thread:
Run some script on deployment
That might be a silly question, but is the solution described ...
2
votes
1
answer
2k
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
1
answer
469
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
3
answers
3k
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
2
answers
530
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 ...