5

I've been using Lexiloader on Mac OS X as a drop-in replacement for the windows-only Apex Data Loader, but it doesn't seem to include the process command that provides command line support in ADL. Is there a Mac equivalent anywhere to Apex Data Loader's command line support?

2
11

Figured out how to do this using Lexiloader, by referring to process.bat that comes with the official (Windows) Apex Data Loader, which just runs a Java class in the dataloader jar.

Here's a sample Windows command:

process confDir csvInsertArtist

And here's the equivalent OS X command line (assumes LexiLoader v.29 installed in /Applications, adjust path if you have another version/install location):

java -cp /Applications/LexiLoader_v29.app/Contents/Resources/Java/Dataloader.jar -Dsalesforce.config.dir=confDir com.salesforce.dataloader.process.ProcessRunner process.name=csvInsertArtist

Otherwise, everything works like the windows version - you use the same process-conf.xml file, etc. Likewise, the encrypt command included with the Windows version can be run with:

java -cp /Applications/LexiLoader_v29.app/Contents/Resources/Java/Dataloader.jar com.salesforce.dataloader.security.EncryptionUtil

which will give you usage information.

1
  • Amazing! I've stored data loading resources in our git repo for client data loading jobs as follows: gitRepo/dataloader/process-conf.xml, gitRepo/dataloader/mappings/mappingFile.sdl, gitRepo/dataloader/bin-mac/Dataloader.jar, gitRepo/dataloader/bin-win/process.bat This way, you can use the same process-conf.xml and mapping files for the multiple platform executables. Mar 9 '16 at 1:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.