Slaesforce FAQ

can't deploy snapshot with ant salesforce

by Domenick Runolfsson Published 2 years ago Updated 2 years ago

Summary After retrieving an Analytic Snapshot with ANT from the source org you are unable to either deploy to another, or even redeploy to the source org. This is due to an encoding/decoding issue which doesn't resolve when deployed.

Full Answer

Do I need a manifest for Salesforce DX deployment?

If you aren't familiar with the two source formats and aren't currently using Salesforce DX, your code is certainly in Metadata API format and does require a manifest for deployment. Salesforce provides documentation covering CI setup on various providers, including sample repos.

Do I need the sfdx CLI or the Ant Migration Tool?

The Ant-based Force.com Migration Tool and SFDX CLI are both clients of the Metadata API. You need one or the other, but generally not both, as both tools provide Metadata API deployment services. Specifically, you don't need the Force.com Migration Tool to drive Salesforce DX.

Do I need the Salesforce DX migration tool or metadata API?

You need one or the other, but generally not both, as both tools provide Metadata API deployment services. Specifically, you don't need the Force.com Migration Tool to drive Salesforce DX.

Does Salesforce support partial or delta deployments?

Salesforce's tooling does not include any support for partial or delta (i.e., change-only) deployments other than with source-tracking orgs (such as scratch orgs), where you can use sfdx force:source:push.

What is a snapshot version in Ant Maven?

The unique snapshot version (timestamp) is created by the Ant Maven plugin and not Artifactory. To prevent the Ant Maven plugin from generating a unique snapshot version, you will need to set the value of the uniqueVersion property to false (default is true):

What does 0 mean in Maven snapshot?

In addition, you can set the value of max unique snapshots in order to clean older snapshots. A value of 0 (default) indicates that there is no limit on the number of unique snapshots.

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9