Error Loading Parameter Sfdc.password Of Type Java.lang.string
Started Documentation Release Overview Trailhead Books & Cheat Sheets On-Demand Webinars Certification Blogs Tools Force.com IDE Lightning Design System Source Code Scanner More Tools & Toolkits By Topic App Distribution App Logic Architect Database Lightning Mobile Integration Security User Interface Websites Community Developer Forums Events Calendar Developer MVPs Developer Groups Developer Success Stories Blogs Blog All Blogs Developer Relations Engineering Force.com Labs Tech Docs Trailhead Trailhead - Trails - Modules - Projects Get Help Join the Community Login with Salesforce Don't have an account? Signup for a Developer Edition Browse by Topic Apex Code Development (56132) General Development (42665) Visualforce Development (29041) Formulas & Validation Rules Discussion (6937) APIs and Integration (6604) Jobs Board (6103) Other Salesforce Applications (5567) Force.com Sites & Site.com (3588) Java Development (3497) .NET Development (3331) Mobile (1753) Lightning (1534) Trailhead (3282) Perl, PHP, Python & Ruby Development (1895) AppExchange Directory & Packaging (1806) Mobile (1753) Security (1729) Lightning (1534) Chatter and Chatter API Development (1436) Visual Workflow (1088) Salesforce Labs & Open Source Projects (1009) Desktop Integration (970) Apple, Mac and OS X (709) VB and Office Development (613) Schema Development (604) Architecture (427) Salesforce Summer of Hacks (132) Salesforce $1 Million Hackathon (127) Predictive Services (5) View More Topics See All Posts Welcome to Support! Search for an answer or ask a question of the zone or Customer Support. Need help? Dismiss ShowAll Questionssorted byDate Posted ShowAll QuestionsUnanswered QuestionsUnsolved QuestionsSolved Questions sorted byDate PostedRecent ActivityMost Popular + Start a Discussion You need to sign in to do that Sign in to start a discussion Don't have an account? Signup for a Developer Edition Solved QuestionsThis Question crikketlangStruggling with Apex Data Loader Command Line PasswordI seem to be having an issue with the Encrypt or decrypt portion of the password process. From what i read on the return from command prompt, it knows the first two characters in my password and decrypts it properly ("Sh") but it seems to have a problem with something after this point??? Or i could be completely crazy... Might anyone be able to shed some light? Did i encrypt wrong? Is it recquired to have a key
by Jitendra on Posted on September 26, 2012November 18, 2015 under category Categories Salesforce and tagged as Tags ANT, CLI, DataLoader with 43 Comments on Command line dataloader in Salesforce - Solve Common errors I had this article in my list for long time and today i got chance to share with you all. Data Loader is great native tool provide by the Salesforce to insert, upsert, update, export and delete data. Standard Data Loader wizard needs interaction however there are many scenarios where we need to perform these data loading tasks repeatedly like every night 1:00 AM (Nightly Services) https://developer.salesforce.com/forums/?id=906F00000008zYoIAI or something. So, for these situations we can use standard data loader tool from Command line. In this article, i will explain in detail on how to use Data Loader from command line. The most important part of setting up Command line Data loader is to generate the encrypted password using utility provided by the Data Loader. Commandline Data Loader tools This directory contains two utility batch file : "encrypt.bat" http://www.jitendrazaa.com/blog/salesforce/tutorial-of-command-line-dataloader-salesforce/ and "process.bat" Navigate to "Program Files | Data Loader | bin" in command prompt and run command. encrypt.bat –g YOURSECRETKEY Generate Secret Key for Command Line Dataloader The secrete key provided can be anything of your choice. Copy the generated Text highlighted in White color and paste in new file "Key.txt". Now run again above command to generated encrypted password with following command: encrypt.bat -e password "C:Users\shiva\Desktop\Data Loader Documents\Try\Key.txt" Commandline Data Loader generate Encrypted Password Now, note this password somewhere, as it is going to be used in remaining part of configuration. Make sure that password generated is correct by checking below command, it should show your actual password : encrypt.bat -v generatedPassword secretKey If you are using proxy server and it uses the password, then repeat same step for generating encrypted password. Create file - "config.properties" : This file contains all the common configurations settings like UserName, encrypted password. This file can also be kept as blank however it is good practice to write all common configurations in this file. Keys in this file will be same as of "Process-config.xml" as described at the end of this article. Example: #Loader Config #Wed Sep 19 2012 sfdc.debugMessages=true process.encryptionKeyFile=C:\Users\shiva\Desktop\Data Loader Documents\Try\Key.txt sfdc.debugMessagesFile = C:\Users\shiva\Desktop\Data Loader Documents\Try\AccountExport.log sfdc.endpoint=https://login.salesforce.com sfdc.username=ilovenagpur@gmail.com sfdc.password=7b5693f0cad856dc778d4b8506f2c976 sfdc.proxyUsername=proxyUserName sf
for a quick overview of the site http://salesforce.stackexchange.com/questions/18177/issue-while-using-cli-dataloader Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us https://dataloader.zendesk.com/hc/en-us/community/posts/211148907-I-need-help-with-Data-loader-command-line-interface-Password-issues-for-starters- Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Salesforce Questions Tags Users error loading Badges Unanswered Ask Question _ Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer error loading parameter The best answers are voted up and rise to the top Issue while using CLI dataloader up vote 2 down vote favorite I am getting this error while running my process in CLI dataloader: c:\Program Files\salesforce.com\Data Loader\bin>process.bat accountExtract 2013-10-15 15:26:27,695 INFO [main] controller.Controller initLog (Controller.java:389) - Using built-in logging configuration, no log-conf.xml in c:\Program Files\salesforce.com\Data Loader\bin\log-conf.xml 2013-10-15 15:26:27,712 INFO [main] controller.Controller initLog (Controller.java:391) - The log has been initialized 2013-10-15 15:26:27,722 INFO [main] controller.Controller initConfig (Controller.java:327) - config dir created at c:\Program Files\salesforce.com\Da ta Loader\bin\accountExtract 2013-10-15 15:26:27,732 INFO [main] controller.Controller initConfig (Controller.java:338) - config file created at c:\Program Files\salesforce.com\D ata Loader\bin\accountExtract\config.properties 2013-10-15 15:26:27,761 INFO [main] controller.Controller initConfig (Controller.java:355) - The controller config has been initialized 2013-10-15 15:26:27,766 INFO [main] process.ProcessRunner run (ProcessRunner.java:116) - Initializing process engine 2013-10-15 15:26:27,772 IN
command line interface. Below is my command: C:Program Filessalesforce.comData Loaderbin>process.bat "C:Program FilesSalesforce.com" accountInsert Below is the output: 2013-08-22 12:45:14,402 INFO [main] controller.Controller initLog (Controller.java:382) - Reading log-conf.xml in C:Program Filessalesforce.comData Loaderbinlog-conf.xml 2013-08-22 12:45:15,651 INFO [main] controller.Controller initLog (Controller.java:391) - The log has been initialized 2013-08-22 12:45:15,687 INFO [main] process.ProcessConfig getBeanFactory (ProcessConfig.java:103) - Loading process configuration from config file: C:program filessalesforce.comprocess-conf.xml 2013-08-22 12:45:16,506 INFO [main] xml.XmlBeanDefinitionReader loadBeanDefinitions (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from file [C:program filessalesforce.comprocess-conf.xml] 2013-08-22 12:45:16,708 INFO [accountInsert] controller.Controller initConfig (Controller.java:327) - config dir created at C:program filessalesforce.com 2013-08-22 12:45:17,117 INFO [accountInsert] controller.Controller initConfig (Controller.java:355) - The controller config has been initialized 2013-08-22 12:45:17,150 INFO [accountInsert] process.ProcessRunner run (ProcessRunner.java:116) - Initializing process engine 2013-08-22 12:45:17,150 INFO [accountInsert] process.ProcessRunner run (ProcessRunner.java:119) - Loading parameters 2013-08-22 12:45:19,342 ERROR [accountInsert] config.Config decryptProperty (Config.java:692) - Error loading parameter: sfdc.password of type: java.lang.String javax.crypto.BadPaddingException: Given final block not properly padded at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA13*..) at javax.crypto.Cipher.doFinal(DashoA13*..) at com.salesforce.dataloader.security.EncryptionUtil.