function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Curious_GCurious_G 

Migration Tool Test Fails

Upon installation of Migration Tool, I try to run ant test or ant retrieveUnpackaged for the “sample” folder . In both cases the build fails and ant –verbose reports, among the other things, “Property “sf.password” has not been set”.

Is that an indication of improper customization of “build.properties” file that currently looks as follows:

 

# build.properties
#

# Specify the login credentials for the desired Salesforce organization
sf.username = <xxxx@xxxx.com>
sf.password = <xxxxxxxxxxxxxxxxxxxxxxxxxx>
#sf.pkgName = <Insert comma separated package names to be retrieved>
#sf.zipFile = <Insert path of the zipfile to be retrieved>
#sf.metadataType = <Insert metadata type name for which listMetadata or bulkRetrieve operations are to be performed>

# Use 'https://www.salesforce.com' for production or developer edition (the default if not specified).
# Use 'https://test.salesforce.com for sandbox.
sf.serverurl = https://www.salesforce.com

# If your network requires an HTTP proxy, see http://ant.apache.org/manual/proxy.html for configuration.
#

 

?

 

Thanks,

 

Gene

altaiojokaltaiojok

Your build.properties looks ok, but make sure that your build.xml starts with (after the <target> opening tag):

 

<property file="build.properties"/>

 

Also make sure the build.xml and build.properties files are in the same directory (or adjust the path above accordingly).