+ Start a Discussion
Shukla YogeshShukla Yogesh 

Issue with data loader password and key encryption

I have followed the guidelines to generate key and encrypted password and updated in conf file but still I am getting below error.

I know there must be something wrong because when I try to decrypt using command >>encrypt -v encrypted_password key 

I get error message:

C:\Program Files (x86)\salesforce.com\Data Loader\bin>encrypt -v 3a7d1f7fba4ac8d
ee4c39412fb0ae9a3 2a31d4a55b07acfc
2016-05-30 14:49:11,191 ERROR [main] security.EncryptionUtil main (EncryptionUti
l.java:336) - Error decrypting string: 3a7d1f7fba4ac8dee4c39412fb0ae9a3, error:
Given final block not properly padded
C:\Program Files (x86)\salesforce.com\Data Loader\bin>
While using process command error message is as below:
C:\Program Files (x86)\salesforce.com\Data Loader\bin>process "C:\Program Files
(x86)\salesforce.com\Data Loader\samples\conf" accountMasterProcess
2016-05-30 14:19:39,663 INFO  [main] controller.Controller initLog (Controller.j
ava:382) - Reading log-conf.xml in C:\Program Files (x86)\salesforce.com\Data Lo
ader\bin\log-conf.xml
2016-05-30 14:19:39,683 INFO  [main] controller.Controller initLog (Controller.j
ava:391) - The log has been initialized
2016-05-30 14:19:39,683 INFO  [main] process.ProcessConfig getBeanFactory (Proce
ssConfig.java:104) - Loading process configuration from config file: C:\Program
Files (x86)\salesforce.com\Data Loader\samples\conf\process-conf.xml
2016-05-30 14:19:39,754 DEBUG [main] env.AbstractEnvironment <init> (AbstractEnv
ironment.java:114) - Initializing new StandardEnvironment
2016-05-30 14:19:39,764 DEBUG [main] env.MutablePropertySources addLast (Mutable
PropertySources.java:103) - Adding [systemProperties] PropertySource with lowest
 search precedence
2016-05-30 14:19:39,764 DEBUG [main] env.MutablePropertySources addLast (Mutable
PropertySources.java:103) - Adding [systemEnvironment] PropertySource with lowes
t search precedence
2016-05-30 14:19:39,764 DEBUG [main] env.AbstractEnvironment <init> (AbstractEnv
ironment.java:120) - Initialized StandardEnvironment with PropertySources [syste
mProperties,systemEnvironment]
2016-05-30 14:19:39,764 INFO  [main] support.AbstractApplicationContext prepareR
efresh (AbstractApplicationContext.java:495) - Refreshing org.springframework.co
ntext.support.FileSystemXmlApplicationContext@1a8dfcc: startup date [Mon May 30
14:19:39 IST 2016]; root of context hierarchy
2016-05-30 14:19:39,814 DEBUG [main] env.AbstractEnvironment <init> (AbstractEnv
ironment.java:114) - Initializing new StandardEnvironment
2016-05-30 14:19:39,814 DEBUG [main] env.MutablePropertySources addLast (Mutable
PropertySources.java:103) - Adding [systemProperties] PropertySource with lowest
 search precedence
2016-05-30 14:19:39,814 DEBUG [main] env.MutablePropertySources addLast (Mutable
PropertySources.java:103) - Adding [systemEnvironment] PropertySource with lowes
t search precedence
2016-05-30 14:19:39,814 DEBUG [main] env.AbstractEnvironment <init> (AbstractEnv
ironment.java:120) - Initialized StandardEnvironment with PropertySources [syste
mProperties,systemEnvironment]
2016-05-30 14:19:39,824 DEBUG [main] env.AbstractEnvironment <init> (AbstractEnv
ironment.java:114) - Initializing new StandardEnvironment
2016-05-30 14:19:39,824 DEBUG [main] env.MutablePropertySources addLast (Mutable
PropertySources.java:103) - Adding [systemProperties] PropertySource with lowest
 search precedence
2016-05-30 14:19:39,824 DEBUG [main] env.MutablePropertySources addLast (Mutable
PropertySources.java:103) - Adding [systemEnvironment] PropertySource with lowes
t search precedence
2016-05-30 14:19:39,824 DEBUG [main] env.AbstractEnvironment <init> (AbstractEnv
ironment.java:120) - Initialized StandardEnvironment with PropertySources [syste
mProperties,systemEnvironment]
2016-05-30 14:19:39,834 INFO  [main] xml.XmlBeanDefinitionReader loadBeanDefinit
ions (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from file
 [C:\Program Files (x86)\salesforce.com\Data Loader\samples\conf\process-conf.xm
l]
2016-05-30 14:19:39,844 DEBUG [main] xml.DefaultDocumentLoader loadDocument (Def
aultDocumentLoader.java:72) - Using JAXP provider [com.sun.org.apache.xerces.int
ernal.jaxp.DocumentBuilderFactoryImpl]
2016-05-30 14:19:39,844 DEBUG [main] xml.BeansDtdResolver resolveEntity (BeansDt
dResolver.java:73) - Found beans DTD [http://www.springframework.org/dtd/spring-
beans.dtd] in classpath: spring-beans.dtd
2016-05-30 14:19:39,854 DEBUG [main] xml.DefaultBeanDefinitionDocumentReader reg
isterBeanDefinitions (DefaultBeanDefinitionDocumentReader.java:108) - Loading be
an definitions
2016-05-30 14:19:39,945 DEBUG [main] support.AbstractBeanDefinitionReader loadBe
anDefinitions (AbstractBeanDefinitionReader.java:216) - Loaded 4 bean definition
s from location pattern [C:\Program Files (x86)\salesforce.com\Data Loader\sampl
es\conf\process-conf.xml]
2016-05-30 14:19:39,945 DEBUG [main] support.AbstractApplicationContext obtainFr
eshBeanFactory (AbstractApplicationContext.java:525) - Bean factory for org.spri
ngframework.context.support.FileSystemXmlApplicationContext@1a8dfcc: org.springf
ramework.beans.factory.support.DefaultListableBeanFactory@f71333: defining beans
 [accountMasterProcess,opportunityUpsertProcess,databaseAccountExtractProcess,cs
vAccountExtractProcess]; root of factory hierarchy
2016-05-30 14:19:39,987 DEBUG [main] support.AbstractApplicationContext initMess
ageSource (AbstractApplicationContext.java:794) - Unable to locate MessageSource
 with name 'messageSource': using default [org.springframework.context.support.D
elegatingMessageSource@9d9c55]
2016-05-30 14:19:39,987 DEBUG [main] support.AbstractApplicationContext initAppl
icationEventMulticaster (AbstractApplicationContext.java:818) - Unable to locate
 ApplicationEventMulticaster with name 'applicationEventMulticaster': using defa
ult [org.springframework.context.event.SimpleApplicationEventMulticaster@e6e9c3]

2016-05-30 14:19:39,987 INFO  [main] support.DefaultListableBeanFactory preInsta
ntiateSingletons (DefaultListableBeanFactory.java:557) - Pre-instantiating singl
etons in org.springframework.beans.factory.support.DefaultListableBeanFactory@f7
1333: defining beans [accountMasterProcess,opportunityUpsertProcess,databaseAcco
untExtractProcess,csvAccountExtractProcess]; root of factory hierarchy
2016-05-30 14:19:39,997 DEBUG [main] support.AbstractApplicationContext initLife
cycleProcessor (AbstractApplicationContext.java:845) - Unable to locate Lifecycl
eProcessor with name 'lifecycleProcessor': using default [org.springframework.co
ntext.support.DefaultLifecycleProcessor@18ad742]
2016-05-30 14:19:39,997 DEBUG [main] support.AbstractBeanFactory doGetBean (Abst
ractBeanFactory.java:245) - Returning cached instance of singleton bean 'lifecyc
leProcessor'
2016-05-30 14:19:39,997 DEBUG [main] support.AbstractAutowireCapableBeanFactory
createBean (AbstractAutowireCapableBeanFactory.java:430) - Creating instance of
bean 'accountMasterProcess'
2016-05-30 14:19:40,047 DEBUG [main] support.AbstractAutowireCapableBeanFactory
invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1498) - Invoking afte
rPropertiesSet() on bean with name 'accountMasterProcess'
2016-05-30 14:19:40,047 DEBUG [main] support.AbstractAutowireCapableBeanFactory
createBean (AbstractAutowireCapableBeanFactory.java:458) - Finished creating ins
tance of bean 'accountMasterProcess'
2016-05-30 14:19:40,057 DEBUG [accountMasterProcess] controller.Controller initC
onfig (Controller.java:313) - config dir: C:\Program Files (x86)\salesforce.com\
Data Loader\samples\conf
2016-05-30 14:19:40,057 INFO  [accountMasterProcess] controller.Controller initC
onfig (Controller.java:327) - config dir created at C:\Program Files (x86)\sales
force.com\Data Loader\samples\conf
2016-05-30 14:19:40,077 INFO  [accountMasterProcess] controller.Controller initC
onfig (Controller.java:355) - The controller config has been initialized
2016-05-30 14:19:40,087 INFO  [accountMasterProcess] process.ProcessRunner run (
ProcessRunner.java:116) - Initializing process engine
2016-05-30 14:19:40,087 INFO  [accountMasterProcess] process.ProcessRunner run (
ProcessRunner.java:119) - Loading parameters
2016-05-30 14:19:40,851 ERROR [accountMasterProcess] config.Config decryptProper
ty (Config.java:737) - Error loading parameter: sfdc.password of type: java.lang
.String
java.lang.NumberFormatException: For input string: "pw"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.valueOf(Unknown Source)
        at java.lang.Integer.decode(Unknown Source)
        at com.salesforce.dataloader.security.EncryptionUtil.textToBytes(Encrypt
ionUtil.java:71)
        at com.salesforce.dataloader.security.EncryptionUtil.decryptString(Encry
ptionUtil.java:207)
        at com.salesforce.dataloader.config.Config.decryptProperty(Config.java:7
23)
        at com.salesforce.dataloader.config.Config.postLoad(Config.java:675)
        at com.salesforce.dataloader.config.Config.loadParameterOverrides(Config
.java:701)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:120)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:100)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.ja
va:253)
2016-05-30 14:19:40,851 FATAL [main] process.ProcessRunner topLevelError (Proces
sRunner.java:238) - Unable to run process accountMasterProcess
java.lang.RuntimeException: com.salesforce.dataloader.exception.ParameterLoadExc
eption: Error loading parameter: sfdc.password of type: java.lang.String
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:162)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:100)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.ja
va:253)
Caused by: com.salesforce.dataloader.exception.ParameterLoadException: Error loa
ding parameter: sfdc.password of type: java.lang.String
        at com.salesforce.dataloader.config.Config.decryptProperty(Config.java:7
38)
        at com.salesforce.dataloader.config.Config.postLoad(Config.java:675)
        at com.salesforce.dataloader.config.Config.loadParameterOverrides(Config
.java:701)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:120)
        ... 2 more
Caused by: java.lang.NumberFormatException: For input string: "pw"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.valueOf(Unknown Source)
        at java.lang.Integer.decode(Unknown Source)
        at com.salesforce.dataloader.security.EncryptionUtil.textToBytes(Encrypt
ionUtil.java:71)
        at com.salesforce.dataloader.security.EncryptionUtil.decryptString(Encry
ptionUtil.java:207)
        at com.salesforce.dataloader.config.Config.decryptProperty(Config.java:7
23)
        ... 5 more