Questions tagged [ant]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Unable to deploy aura component to sales force org

Trying to deploy single aura bundle to production org. If validation is successful, it will generate a package which we will deploy to prod. Quick Deploy button is activated once validation is ...
user avatar
-1 votes
0 answers
15 views

Delete deployed files [closed]

Some time ago I deploed project to UAT org and now I want to delete them all (Custom objects, classes, layouts and etc). I did it with ANT and have the package.xml file that I used during deployment. ...
user avatar
  • 15
0 votes
1 answer
59 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 ...
user avatar
1 vote
1 answer
41 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,
user avatar
  • 433
0 votes
1 answer
30 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 ...
user avatar
0 votes
1 answer
52 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 ...
user avatar
  • 649
0 votes
2 answers
108 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 ...
user avatar
  • 5
0 votes
0 answers
44 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 ...
user avatar
0 votes
1 answer
75 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 ...
user avatar
  • 617
0 votes
1 answer
123 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 ...
user avatar
0 votes
1 answer
123 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 ...
user avatar
0 votes
1 answer
126 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 ...
user avatar
  • 2,327
0 votes
1 answer
42 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 ...
user avatar
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 ...
user avatar
0 votes
1 answer
83 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 ...
user avatar
5 votes
1 answer
465 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 ...
user avatar
0 votes
0 answers
437 views

Delete inactive picklist values using Metadata API - destructive package xml

I am trying to find a way to delete some picklist field values using Metadata API. My initial thought was to remove from the Metadata file and deploy it. However, the picklist value that I removed ...
user avatar
  • 4,521
1 vote
1 answer
96 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 ...
user avatar
0 votes
0 answers
23 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 ...
user avatar
0 votes
1 answer
83 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 ...
user avatar
1 vote
1 answer
463 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, ...
user avatar
0 votes
1 answer
472 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 ...
user avatar
0 votes
0 answers
52 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 ...
user avatar
1 vote
1 answer
63 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 ...
user avatar
1 vote
0 answers
106 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 ...
user avatar
0 votes
2 answers
511 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&...
user avatar
0 votes
1 answer
134 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 ...
user avatar
  • 1
1 vote
1 answer
223 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....
user avatar
3 votes
0 answers
51 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&...
user avatar
  • 1,145
0 votes
0 answers
39 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.&...
user avatar
5 votes
1 answer
234 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 ...
user avatar
  • 1,145
0 votes
1 answer
210 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 ...
user avatar
  • 69
1 vote
0 answers
526 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 ...
user avatar
  • 31
0 votes
1 answer
372 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) ...
user avatar
  • 95
0 votes
1 answer
354 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 -> ...
user avatar
0 votes
0 answers
123 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 ...
user avatar
1 vote
0 answers
281 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 ...
user avatar
1 vote
1 answer
71 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 ...
user avatar
2 votes
1 answer
945 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 ...
user avatar
  • 53
1 vote
1 answer
214 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 ...
user avatar
0 votes
3 answers
2k 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}" ...
user avatar
1 vote
2 answers
276 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 ...
user avatar
1 vote
1 answer
62 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....
user avatar
  • 997
0 votes
1 answer
115 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 ...
user avatar
  • 212
1 vote
1 answer
343 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 ...
user avatar
0 votes
1 answer
119 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 ...
user avatar
0 votes
1 answer
1k 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>...
user avatar
2 votes
1 answer
1k 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?
user avatar
0 votes
1 answer
3k 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 ...
user avatar
  • 2,090
0 votes
1 answer
276 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 ...
user avatar

1
2 3 4 5
9