+ Start a Discussion
Arpit AgarwalArpit Agarwal 

Error while running batch via Apex Data Loader Command Line Interface: "Given block not properly padded"

We have a CLI Data loader batch which runs to export the records from salesforce.
I wanted to encrypt the new password & use the encrypted password to login to Salesforce through CLI.
After I had encrypted the password & saved the password in process.conf file, it fails to login to Salesforce with the error "Given last block not properly padded" once run the batch.
To resolve the above issue, I had to save the key.txt file.
Also, I had to add one more line in the xml to put the reference in the process.conf xml file.
After I had followed the above pocess, it worked perfiectly fine.
But ,my question is previously we never added that line in the xml, but was working.
Can anyone please let me know the root cause of this issue?

Thanks
ShashankShashank (Salesforce Developers) 
Does this happen only in sandbox or production as well?