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

1 Answer 1

12

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. Commented Mar 9, 2016 at 1:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .