Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [ant]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
361 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 ...
0
votes
1answer
112 views

Eclipse Force IDE: Found read only local file content not in sync with remote instance. Use Synchronize to resolve conflict.

I am trying to update the leads object with new fields I created using force ide. However, whenever I try I get the following error: Eclipse Force IDE: Found read only local file content not in sync ...
2
votes
0answers
57 views

Force.com Migration Tool “Validate Only” causing later compilation errors

We just implemented a new process in our development cycle where code that has been completed is validated against a target org to check that no packaging specific rules have been violated (such as ...
0
votes
1answer
102 views

Public remoted methods not allowed in global components (Batch Job)

I am trying to deploy the APEX code in salesforce ORG using ANT tool but getting following error: components/TestComplete.component -- Error: Previous load of class failed: Class.BR02....
6
votes
2answers
4k views

Run Specific Tests with Ant Deploy specified by command line or file

When deploying with ant you have the option to specify which tests to run, e.g. <target name="deploy"> <sf:deploy username="${sf.username}" password="${sf.password}" ...
6
votes
2answers
5k views

Standard Picklist Fields in Metadata API v39

Standard Picklist Fields were renamed in the Metadata API from "CustomField" (v37) to "StandardValueSet" (v38). Now, in v39 they are back to "CustomField", but when you retrieve one of this Standard ...
5
votes
3answers
2k views

Unknown user permission: ManageSandboxes

Using the Force.com Migration Tool (Ant) v1.9.4 to deploy from one sandbox to another both on Spring '17 results in 21. profiles/Admin.profile -- Error: Unknown user permission: ManageSandboxes 22. ...
2
votes
1answer
669 views

Build.xml setup for continuous integration

I am trying to setup my build.xml to reference the ant-salesforce.jar from my project checkout. The directory structure is similar to this: Project Dir -> src -> ant-salesforce.jar -> build....
2
votes
2answers
2k views

ant deployment fails with “Error: limit exceeded”

I've been running ant deploy all day yesterday on an org of mine with no problems. Before each deployment, I ran an undeploy to delete everything I had deployed previously. In the middle of the day, ...
0
votes
0answers
818 views

insufficient access rights on cross-reference id while deploying package

I am getting below error while deploying package. Insufficient access rights on cross-reference id. I can't even see line number.so I am not able to find issue. Please suggest
1
vote
1answer
311 views

How to enable permission for creating ContentAsset in Bolt Template?

I'm trying to deploy a Bolt Template using ANT. I am able to successfully deploy the template from one dev org into another new dev org. But when I go to deploy into a different org, I run into this ...
2
votes
1answer
1k views

How to retrieve Wave Source files from Eclipse/Ant tool?

I want to retrieve/fetch Wave Source(WaveApplication, WaveDashboard, WaveDataset and etc) files from Eclipse/Ant Migration tool. I tried many times but not getting any single component file. I am ...
4
votes
1answer
460 views

Jenkins Salesforce CI server setup

I have a simple doubt and wanted to get community perspective. I have set up Jenkins for all my Salesforce deployments with Force.com Migration tool. Now it works properly on my local machine without ...
1
vote
0answers
77 views

convert ANT script to Java

I have been digging for almost a week into the forums and S/F Developer pages for good "basic" Java code to retrieve a package from one ORG and Deploy to another ORG. I have had success building the ...
3
votes
1answer
2k views

Issue: Long pending time when deploying to develop org

Related Issue Link Having two develop orgs on NA35. Whenever I deploy using "ant" or "MavensMate" either way the deployment keep pending for long long time. They usually get start after 30+ mins. I ...
2
votes
1answer
2k views

How to deploy Approval processes using ANT migration tool?

I am trying make a deployment using ant, i have an error concerning Approval processes, i am wondering if we can really deploy an approval process using ANT: All Component Failures: 1. package.xml --...
0
votes
2answers
2k views

Deployment Error: Invalid field:** in related list:RelatedAccountContactRelationList

i am trying to deploy a package, i am getting 3 errors (the picture): all these errors seem to be caused by a field called CONTACT.FULL_NAME, is that a valid field or you have another explications ...
0
votes
3answers
15k views

Retrieve and Deploy a workflow using ANT

I am working on some customization for a CPQ product and I have created a workflow to populate some of the fields. I would like to deploy this workflow from the developer sandbox to our fullcopy ...
0
votes
1answer
110 views

Help, how to deploy a xml package?

I am trying to deploy a xml file but i get the following error: 4. objects/Account.object (Account.NbOppsOuvertesAvancees__c) -- Error: Invalid Field: Opportunity.RecordTypeId (line 1607, column 29) ...
0
votes
1answer
775 views

Remove custom field or workflow alert via ant migration tool

Is it possible to remove workflow alerts or custom fields via ant migration tool? If yes: how do I do that? <types> <members>Convention_Approved_Email_Send</members> <...
1
vote
1answer
53 views

Ant metadata api conditional argument

I am updating an ant script to specify a testLevel argument. However we'd like to have this argument be optional. I'm fairly new to ant and wondering if theres a way to conditional see if the ...
2
votes
1answer
2k views

Deployment of translations of custom labels using ANT

We have a very large number of translations for custom labels. could any one guide me in how to create package.xml for deploying translations into new sandbox using Ant. I retrieved translation data ...
0
votes
3answers
888 views

Getting “Failed to login” error while run Ant Migration Tool Target

I'm trying to run Ant Migration Tool Target using Jenkins CI from my server and getting next error: BUILD FAILED /var/lib/jenkins/workspace/<Jenkins Build Job Name>/build.xml:41: Failed to ...
1
vote
1answer
412 views

Jenkins + Ant Migration Tool: Caused by: com.sforce.ws.ConnectionException

I'm trying to configure deploying my sfdc metadata using JenkinsCI but in case I see next error: deployCodeCheckOnly: parsing buildfile jar:file:/usr/share/ant/lib/ant-salesforce.jar!/com/salesforce/...
1
vote
0answers
74 views

Is there any way to disallow the '$' character in a Salesforce password?

Is there any way to prevent certain characters from being used in Salesforce passwords? Specifically, the '$' character causes problems when using ANT for continuous integration, as this symbol ...
0
votes
1answer
5k views

unable to obtain exclusive access to this record

I am getting below error on a custom field on the Account object during deployment. unable to obtain exclusive access to this record Why am I getting this error?
1
vote
1answer
52 views

Unable to retrive the FLA permissions for Standard field “BusinessHoursId” on Case object

I am trying to retrive the FLA permissions for a Case object standard field "BusinessHoursId" by using below package file content,but the Admin profile which i retrive didn't contain the FLA of "...
3
votes
1answer
4k views

Migrate GlobalValueSet (Global Picklist) between orgs when GlobalValueSet is part of a managed package

I have a GlobalValueSet in my managed package, and in a subscriber org I've added values to it. e.g. A 'Country' global picklist in the managed package, then in a subscriber org I add the countries I ...
0
votes
1answer
122 views

Custom Metadata Types - Subscriber editable field - Value overwritten by ANT deploy

I'm writing today because I need to clarify something about the Custom Metadata Types. Here's my doubt: let's say we have a Custom Metadata Type named X__mdt, with a Subscriber Editable field Y__c of ...
2
votes
0answers
658 views

Ant Migration Tool: INVALID_OPERATION - INVALID_OPERATION:Too many files in zip

Now I'm trying to deploy bunch of custom objects to my Developer Org. using Ant Migration Tool. All these custom objects are from our Production org, and the final goal is to setup CI in our ...
1
vote
1answer
654 views

ANT Force.com Migration Tool and Encrypted Password

Is it possible to use encrypted passwords with the force.com migration toolkit and not save it in plain text in the properties file.
1
vote
1answer
332 views

Fetch all classes, triggers and pages except the managed package ones using ant tool

Hi I am trying to fetch the classes, triggers and visualforce pages in our salesforce org using the ant tool but it ends up fetching the managed package metadata as well. The metadata api doesnt seem ...
1
vote
1answer
316 views

Return asyncRequestId from sf:deploy in Force Migration Tool

Using the Force Migration Tool, we want to find out how to capture the asyncRequestId from our Salesforce deployments as an ANT property for use later in our ANT target. For Example, I may deploy ...
2
votes
3answers
320 views

Use ANT to execute existing ApexTests [closed]

I would like to periodically execute local tests in an org outside of a package deployment. I have a deploy entry in my build.xml file that sets testLevel="RunLocalTests", and has an entry for ...
1
vote
0answers
26 views

Testing whether an org is available for deployment

Are there any command line methods (Linux/Metadata API'ish) that will tell you if an org is available to be deployed to? I'm assuming an org can only have one deployment at a time via the Metadata api,...
1
vote
0answers
57 views

Difficulty managing access to Document using Profiles and the Metadata API

We are having trouble managing the permissions associated with Document via the Metadata API. We are using ant to both deploy and retrieve the metadata files. In order to deploy successfully we can: ...
0
votes
0answers
30 views

How to create an empty Sandbox? [duplicate]

I would like to create an empty (objects and data) sandbox with the same license and features than my prod org to test new implementations. I know that we can use and new dev org. However, this will ...
2
votes
2answers
703 views

Unknown user permission: ChatterInternalUser while deploying the profiles

getting following error : Unknown user permission: ChatterInternalUser while i am deploying profiles. following the xml file : <types> <members>Accounting</members> <...
2
votes
1answer
576 views

error while deploying page layouts of standard object

i am working on deploying the metadata to another org. but while deploying the page-layouts i am getting following error on Contact object layout : layouts/Contact-Contact Layout.layout -- Error: ...
1
vote
1answer
129 views

Profiles migration though ANT/Change Set

SFDC folks – I have a question and need all your inputs on migrating Salesforce compoents(fields, Record types and pick list values…) associated to Profiles in the source org to target org though ANT ...
1
vote
1answer
580 views

Not in package.xml error when deploying to Pricebook2 and PriceBookEntry with Ant Migration Tool

I have been successfully migrating fields between orgs using Ant by retrieving from source org and deploying to target org. However, when I got to fields in Pricebook2 and PriceBookEntry, the ...
4
votes
3answers
403 views

Retrieve all records for a single CustomMetaDataType using ant

I'm trying to use the ant migration tool to retrieve all the Custom Metadata records for a single Custom Metadata Type. However, I can't figure out the syntax. I would think that something like this ...
1
vote
1answer
143 views

Apart from ANT is there any tool which automate deployment

Apart from ANT is there any tool which can be used for deployment
3
votes
1answer
450 views

Ant setup for ubuntu 16.04LTS?

I have install latest version of ant from https://launchpad.net/ubuntu/xenial/+source/ant and also i have done with setup as well. but i don't get any package.xml file, so how can i do deployment in ...
1
vote
1answer
1k views

Migrate startingNumber for AutoNumber field using ANT

I am attempting to migrate a Custom Object using Salesforce, and all is well except the Starting Number for a formatted AutoNumber field is not pulled. I have read through the MetaData Guide (below) ...
0
votes
1answer
1k views

Using Ant Migration tool , No custom object deployed

I am using Ant migration tool to deploy some custom objects from one org ro another. Below is my package.xml: <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/...
0
votes
1answer
560 views

How to delete Installed packages using ANT?

I'm trying to uninstall/delete packages from my salesforce org using ANT (Since there are lot of dependencies) how can I achieve this? When I run ant undeployCode or undeploypackage it shows "...
2
votes
1answer
313 views

INVALID_TYPE: Cannot use: ApexClass in this organization

When I try to download apex classes or triggers via the ant tool, I get the following error: INVALID_TYPE: Cannot use: ApexClass in this organization This was working yesterday, I don't think ...
0
votes
2answers
9k views

How to deploy or retrieve dashboard folder?

Today I have been struggling trying to migrate reports and dashboards from developer organization to production. Looks like we can't deploy dashboard without a folder. While for reports there exist ...