Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [ant]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
34 views

Migration from ANT to Salesforce CLI v2 - Script

Ant gave the possibility of creating a build.xml file which, by calling single operation, performed certain operations, for example: <target name="retrieveFromDEV"> <sf:retrieve ...
Devs's user avatar
  • 3
2 votes
0 answers
64 views

ANT EOL / Migrating to SFDX. Can SFDX authenticate with just username/password+Token on the CLI?

I've been using ANT for years. I've written c# code that wraps around ANT so my users can put in the username, password & Token and hit go and it will call out to ANT, pull down what it needs (...
Mike Jones's user avatar
0 votes
1 answer
33 views

Issue with Empty Results in ApexCodeCoverageAggregate after Validate with RunTest via ANT

I'm encountering an issue while trying to retrieve Apex class coverage after running a Validate with RunTest via ANT in Salesforce. The problem arises because, for certain classes, the coverage report ...
Emanuele Alfano's user avatar
-1 votes
1 answer
36 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 ...
Emanuele Alfano's user avatar
0 votes
0 answers
46 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 ...
Kristjan Turk's user avatar
0 votes
1 answer
70 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 ...
wesaw's user avatar
  • 3,080
0 votes
1 answer
440 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 ...
SFDC Learner's user avatar
0 votes
1 answer
90 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....
Cathy's user avatar
  • 73
0 votes
0 answers
98 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 ...
Alexis Perez's user avatar
0 votes
2 answers
405 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}...
Oupat's user avatar
  • 733
0 votes
1 answer
82 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 ...
Kiran.pandiyan's user avatar
0 votes
1 answer
45 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. "...
naruto-sfdc's user avatar
0 votes
1 answer
155 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 ...
d-fws's user avatar
  • 25
2 votes
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 ...
Mike Paisner's user avatar
1 vote
1 answer
133 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,
Raphael D's user avatar
  • 616
0 votes
1 answer
139 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 ...
anitha Kondreddy's user avatar
0 votes
1 answer
417 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 ...
erikvm's user avatar
  • 711
0 votes
2 answers
3k 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 ...
Saero's user avatar
  • 5
0 votes
0 answers
90 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 ...
michal98kowalczyk's user avatar
1 vote
1 answer
902 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 ...
Oupat's user avatar
  • 733
0 votes
1 answer
373 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 ...
Emmanuel_M's user avatar
6 votes
1 answer
8k 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 ...
Łukasz Franczyk's user avatar
0 votes
1 answer
1k 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 ...
Dman100's user avatar
  • 2,445
0 votes
1 answer
115 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 ...
inbox outbox's user avatar
0 votes
0 answers
21 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 ...
Anton Solomin's user avatar
0 votes
1 answer
244 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 ...
ConorMoore's user avatar
5 votes
1 answer
751 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 ...
AvailableName's user avatar
1 vote
1 answer
177 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 ...
Kaliforce's user avatar
0 votes
0 answers
77 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 ...
Horzopudre's user avatar
0 votes
1 answer
279 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 ...
user101021's user avatar
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, ...
Emmanuel_M's user avatar
1 vote
1 answer
1k 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 ...
NewBaySales's user avatar
0 votes
0 answers
99 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 ...
Nirav Shah's user avatar
1 vote
1 answer
101 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 ...
SFDC-Beginner's user avatar
1 vote
0 answers
280 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 ...
Rob Cowell's user avatar
0 votes
2 answers
2k 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&...
SFDC-Beginner's user avatar
0 votes
1 answer
310 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 ...
Rahul's user avatar
  • 1
1 vote
1 answer
448 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....
markwilland's user avatar
3 votes
0 answers
128 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&...
Rodrigo's user avatar
  • 1,295
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.&...
NonameJavaNoob's user avatar
5 votes
1 answer
604 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 ...
Rodrigo's user avatar
  • 1,295
0 votes
1 answer
857 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 ...
RachelK's user avatar
  • 79
3 votes
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 ...
Spande's user avatar
  • 81
0 votes
1 answer
558 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) ...
MarcLee's user avatar
  • 115
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 -> ...
Isuru Buddhika Herath's user avatar
0 votes
0 answers
280 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 ...
Szosteczka's user avatar
1 vote
0 answers
448 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 ...
Isuru Buddhika Herath's user avatar
1 vote
1 answer
96 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 ...
Szosteczka's user avatar
2 votes
1 answer
3k 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 ...
ram lou's user avatar
  • 55
1 vote
1 answer
592 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 ...
Emmanuel_M's user avatar

1
2 3 4 5
9