Questions tagged [ant]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
446 views

Using DX Scratch Orgs to deploy code with legacy ant scripts

We are considering migration of our managed package development process to Salesforce DX. But we are definitely not ready yet to transform our code base and use full potential of SFDX, but still ...
1
vote
1answer
822 views

Jenkins CI with Salesforce: how to generate package.xml which only contains changed metadata files

To automate our salesforce development flow, we are using Git + Jenkins + Ant to deploy all committed changes to target organization. It works fine! But the only big problem is that all metadata files ...
0
votes
1answer
332 views

How can we add newly created Picklist fields to a specific record type using ANT tool?

I am new to the salesforce ANT migration / deployment tool. I wanted to add all Picklist values Under the "Legal_Auth" record type. How can we add newly created Picklist fields to a specific record ...
0
votes
1answer
358 views

Failed to login: Failed to send request to https://test.salesforce.com/services/Soap/u/41.0

I am having hard time during code retrieve from source org through ANT. I don't have proxy enabled and the username and password+security token is also correct but still I am getting below error C:\...
0
votes
0answers
235 views

How to deploy only changes from sandbox to production instead of all data from package.xml file?

I have a jenkins setup with bitbucket and using ANT migration tool how to deploy only changes into production in CI instead of deploying changes manually. Thanks,
1
vote
1answer
1k views

Error: No package.xml found using ANT deploy

I'm trying to deploy an Apex Class from one org to another. I get this error: All Component Failures: 1.package.xml -- Error: No package.xml found package.xml <?xml version="1.0" encoding="...
0
votes
2answers
528 views

How to deploy only changes to other salesforce org using ANT migration tool instead of deploying all data?

First time i'm deploying the all the salesforce org details from one org to other. for the secong time i have changed something and deploying it again deploying all details instead of ...
0
votes
1answer
299 views

Jenkins Build Failure

I'm receiving this error when trying to run a Jenkins Job. The file configuration seems to be valid. What steps should I take to troublshoot this issue? Problem: failed to create task or type antlib:...
6
votes
1answer
1k views

error deploying entitlement process via ant migration tool and changeset

I'm trying to deploy a new version of an existing entitlement process from one dev sandbox to a full copy sandbox using the ant migration tool. <Package> <types> <members&...
0
votes
2answers
2k views

Deployment error - dependent.class.invalid not found

I am deploying salesforce components using ANT and I am seeing this strange error and don't know what exactly it means by. I have included all the dependent components. Please let me know if anyone ...
0
votes
1answer
66 views

Deployment of metadata between 2 orgs using ANT

I'm deploying custom objects data from OrgA o OrgB using ANT tool which left me in never ending scenario on what to deploy 1st. Here is my scenario: I got OrgA which contains custom fields in Managed ...
0
votes
1answer
205 views

Force.com migration tool is not working after git auto packing repository

I am using git and force.com migration tool for deploying code into sandbox. It was working correctly for many days (including todays morning) until git automatically started to 'Auto packing the ...
0
votes
1answer
865 views

Error deploying QuickAction to Campaign

I have a QuickAction that I'm trying to deploy (using Ant) to a new Developer org. The quick action creates a new child Campaign and uses the ParentId field. Also, this quick action exists in other ...
2
votes
1answer
2k views

How do I migrate default home flexi page assignment from one organization to another using ANT Migration Tool?

I have FlexiPage Home_Page_Default.flexipage assigned as Default Home Lightning Page for all profiles in one sandbox. I need to migrate it to another sandbox and assign as Default Home Lightning Page ...
1
vote
1answer
293 views

How to Migrate Assigned Connect App thing in Permission set?

We have assigned DataLoader Bulk, Dataloader Partner & Workbench connected app to a permission set in our DEV sandbox. But while retrieving permission set using below package.xml (with ant), ...
0
votes
0answers
961 views

BUILD FAILED - Failed to login: Failed to send request to https://test.salesforce.com/services/Soap/u/41.0

I have ant setup running on my system from long time, Suddenly when i tried to run deployment commands in my system all were failing with below error message. deployCode: [sf:deploy] Note: use ...
1
vote
0answers
235 views

How to deploy unmanaged package using the ANT Migration Tool

We are trying to deploy an unmanaged package we are developing within a Developer org to a separate sandbox using the ANT Migration Tool. Im using the following to retrieve the package... <target ...
0
votes
0answers
708 views

Cause :UNKNOWN EXCCEPTION, Invalid Cross Reference ID During ANT undeployCode

I am trying to remove a class from my QAT using destructive.xml ANT script and getting the following exception. Failed to process the request successfully. Cause(UNKNOWN_EXCEPTION): ...
1
vote
1answer
945 views

Error: Unknown user permission: ViewPlatformEvents

How do I get this permission in my sandbox? It's causing errors in Jenkins deployments because it exists in all our developer sandboxes, but not in the developer pro sandbox where we are all ...
0
votes
1answer
30 views

Salesforce Production Deployment Test Class Error out

As we all know for production deployment , Test classes will be automatically running , right !!! . We have issue with that . Half of our test classes are failing because of access issues . Things ...
1
vote
2answers
5k views

No package.xml found: I am trying to deploy applications, classes, components, objects, pages etc from one sandbox to another

I am unable to deploy the retrieved customizations from Sandbox. Please help. Source: Developer Pro Sandbox Destination: Developer Sandbox (dev sandbox is only for trial purpose, I need to deploy ...
1
vote
1answer
404 views

How to Deploy Search Layout Containing Custom Fields

I'm trying to deploy a PricebookEntry object containing a SearchLayout which contains standard and custom fields however I'm having issues when I include a custom field. The following is what ...
0
votes
1answer
69 views

java.lang.VerifyError: (class: com/salesforce/ant/SFDCAntTask, method: doLogin signature: ()Lcom/sforce/soap/partner/LoginResult;)

C:\Users\rajiv\Downloads\salesforce_ant_40.0\sample\build.xml:14: java.lang.VerifyError: (class: com/salesforce/ant/SFDCAntTask, method: doLogin signature: ()Lcom/sforce/soap/partner/LoginResult;) ...
1
vote
1answer
142 views

“Previous load of class failed”, “Invalid type” for inner interface

I'm experiencing the following error during the test phase of a (check-only) ant deployment: line -1, column -1: Previous load of class failed: ComplimentaryTestDomain: line 1, column 75: ...
0
votes
0answers
105 views

Migration tool - undeployCode - Runnning test classes?

I am trying to delete some triggers from Production environment using ant migration tool. I have setup everything correctly and tested other commands like retrieveCode which work as expected. I tried ...
0
votes
0answers
758 views

Picklist value: Customer in picklist: Type not found

I am trying to deploy picklist values via ANT but I am facing this error for all the new values in the picklist. What do I need to add or remove to be able to deploy change Error message is as ...
3
votes
2answers
107 views

Is it possible to update and upload package upon code commit to Git?

I'm using CircleCI to run tests. I have a Git branch. After a feature is done, the work is committed and pushed to the branch. CicrleCI build and run tests. What would be great is to update Managed ...
3
votes
1answer
2k views

Migrating Connected App - Ant Deployment Error

I am getting the below error when I deploy connected app using ANT. Do you guys have any idea, why this error occurs and whats the solution to migrate via ANT. Error: The consumer key is already ...
2
votes
1answer
913 views

Custom field migration issue

I am trying to move a lookup field but I am getting an error: referenceTo value of 'xxxxxx__c' does not resolve to a valid sObject type.
0
votes
1answer
644 views

ant deploy unable to find valid certification path to requested target

I'm connected to a corporate network and getting this error when trying to deploy to salesforce using Ant. Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find ...
1
vote
0answers
60 views

Fields of an Object retrieved using Ant has <encrypted> property

I retrieved an object using ant tool using retrieveUnpackaged command.I retrieved this from a higher environment of my project.. say the SIT environment(Full Sandbox). On looking at the fields( text ...
2
votes
1answer
473 views

What version of ant-salesforce.jar am I using?

Is there a way for me to determine what ant-salesforce.jar file I'm using? My client uses TeamCity which internally uses the JAR file provided by Salesforce. We're trying to determine what Salesforce ...
2
votes
2answers
1k views

How To Retrieve LeadConvertSettings with Force.com Migration Toolkit

I've been trying to retrieve Lead Conversion field mappings in order to add them to Metadata for deployment. I noted in https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/...
1
vote
1answer
303 views

Migrating Connected App , Auth. Provider and Named Credential

I have recently implemented Oauth authentication for one of the integration in my Salesforce Dev org. I have different env in the project- Dev,SIT,QA,Prod. I want to migrate the configuration - ...
6
votes
1answer
848 views

are there alternatives to Salesforce ANT

Today, we are using the combination of Jenkins and the Salesforce ANT migration toolkit. The problem is that all our other projects in the company are not using ant anymore and have moved to either ...
1
vote
0answers
43 views

How to change the lead layout to default layout using ANT

I have a requirement to enable the default button for Lead Layout using ANT tool. This is my Package.xml file <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/...
0
votes
1answer
1k views

How to deploy Path

I'm trying to deploy custom Path using ANT. I have deployed the pathAssistant and the flexipagemetadata but the Path is still not visible in setup nor on page layout. I can see that pathAssistant ...
0
votes
2answers
2k views

Ant deployment throwing error “The version of the flow you're updating was active and can't be overwritten” [duplicate]

I am trying to migrate all Process builders from one instance to other, the target instance already has few flows available which are active.I inactivated all of them and trying to deploy the package ...
0
votes
3answers
9k views

Deployment Issue: An unexpected error occurred. Please include this ErrorId if you contact support: 94477506-8488 (-1165391008)

I am using ANT tool for deploying code into my org and today, when I am trying to deploy the code, it is throwing following exception in about 281 classes: An unexpected error occurred. Please ...
1
vote
2answers
303 views

how to deploy file with brackets in the name using workbench/ant package xml

I have to profile layouts named with brackets in the name. When retrieved the package xml have them listed as: <members>My layout (version 1)</members><br/> and the content of the ...
2
votes
0answers
1k views

Case Status new picklist value deployment error through metadata api

We are trying to deploy some new picklist values on the Case object, on the standard Status field. One of them is the value "On-Hold" included on a new Support process, called "Support" which we are ...
3
votes
0answers
1k views

Report Type – Ant Deployment Errors (Invalid Field Name & Duplicate Value Found)

I am trying to deploy Reports and Dashboards via Ant tool. I get this error for Report Type reports/JMT_Reports/Expiry_and_Renewal_Status.report -- Error: Invalid field name: Lease_Unit__c$...
4
votes
1answer
7k views

Error: “Picklist value in picklist not found” while deploying using ANT

on my account object, I created a picklist field - testPicklist1__c. The picklist field has various values in it. One picklist value is "abc t" & its API name is "abc". I retrieved the Account ...
0
votes
0answers
82 views

Continuous Integration: How To Get Over Common Ant Deployment Issues Which Often Require Manual Intervention

I've deployed many times to SFDC using the Force.Com Migration Tool & Ant. In many cases I often end up having to undertake manual steps to get around issues. An example being Flows. Flows cannot ...
0
votes
1answer
315 views

Ant deployment remove object access for profile

I'm having issue to remove access for objects using ant/eclipse. Currently some profiles have access to Opportunity object (Read/Edit/Create) and I want to remove those access. However, after I ...
1
vote
0answers
421 views

Ant Migration tool - Failed to login

I am trying to retrieve code from salesforce using ant salesforce mignration tool but I am seeing below error. I am running this from a office firewall C:\Continous Integration\sample>ant ...
3
votes
1answer
6k views

ANT deployment of custom field fails - Error: Property 'picklist' not valid in version 39.0

I'm trying to migrate new custom fields to a sandbox using the Salesforce Migration Tool (ANT). Two of the custom fields are picklist fields. And these two fields are causing the error: Error: ...
0
votes
0answers
44 views

Building sandbox based on another sandbox

We have created sandbox and made changes.We want to create copy of this sandbox.What is the fastest way to do this change? I can create one sandbox from prod and apply changesets from this sandbox but ...
0
votes
1answer
349 views

Ant deployment error: Unknown user permission: ManagePartnerNetConn

I got below error during deployment of the profiles. Anyone know what this permission is? Note: in both source and target sandboxes I enabled communities. Meanwhile I removed this permission manually ...
1
vote
0answers
1k views

INVALID_CROSS_REFERENCE_KEY: invalid cross reference id on Ant

Recently made some changes to some of objects turning some from formulas to number fields and vice versa. I added DestructivechangesPre.xml to delete those fields (and in a more extreme manner, after ...