Data-Migration-Tool icon indicating copy to clipboard operation
Data-Migration-Tool copied to clipboard

Login Failed

Open BriannaBrown-hub opened this issue 6 years ago • 3 comments

Hi there,

I'm attempting to run the sample 'Migrate Products, Pricebooks and PricebookEntries' - on the mvn exec:java -Dexec.mainClass="migrator.module.client.MigrateProducts" -pl datamigrator-module command i'm getting Login failed! error.

Any advice would be highly appreciated. I'm keen to be able to utilize this tool.

my build.properties file looks like this:

source.sfdc.login=<SOURCE_SF_USERNAME>
source.sfdc.password=<SOURCE_SF_PASSWORD>
source.env.endpoint="https://salesforce.com/services/Soap/u/44.0/"
# TARGET
target.sfdc.login=<TARGET_SF_USERNAME>
target.sfdc.password=<TARGET_SF_PASSWORD>
target.env.endpoint="https://test.salesforce.com/services/Soap/u/44.0/"

# # Optional proxy
# env.proxy.host=
# env.proxy.port=

target.threads.count=1

source.type=org

object.mapping.dir=/object-mappings/
data.mapping.dir=/data-mappings/ ```


BriannaBrown-hub avatar Apr 04 '19 00:04 BriannaBrown-hub

@briannabrownOE Did you do a "mvn clean install" after editing build.properties with your password?

In addition to that, I see that your build.properties has few " and ```.

anoop-76 avatar Apr 04 '19 01:04 anoop-76

@anoop-76 thanks for the response. I didn't realize I had to run mvn clean install prior to being able to run the command to pull the data. However, now after running the 'mvn clean install' followed by 'mvn exec:java -Dexec.mainClass="migrator.module.client.MigrateProducts" -pl datamigrator-module' i'm getting the following error:

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project datamigrator-module: An exception occured while executing the Java class. null: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project datamigrator-module: An exception occured while executing the Java class. null

BriannaBrown-hub avatar Apr 04 '19 16:04 BriannaBrown-hub

Hello, @briannabrownOE. I have run into the exact same problem. Did you find a cause of the issue? If @anoop-76 do you have any suggestions? Thank you.

developwitheddy avatar Sep 09 '19 01:09 developwitheddy