function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cmarkcmark 

Automating DataLoader - running two processes from one batch file?

Hello.

I have two DataLoader processes configured - an extract and an update.  As soon as records are extracted, I want to update them.  So I have a .cmd file and I call both processes in separate lines (see below).  But it isn't quite working.  The first process runs as expected, the second does not.  Once the SFDC process is complete, the operation terminates and I'm back to a command prompt.  What am I doing wrong?

Thanks
chris

REM first call export
process ../conf exportPF
REM now call update
process ../conf updatePF
jrotensteinjrotenstein
It might be due to one batch file calling another batch file. I do it under Linux without an intermediate batch file, eg:

/opt/java/sdk/1.5/bin/java -cp bin/DataLoader.jar com.salesforce.dataloader.process.ProcessRunner process.name=LoadContacts
/opt/java/sdk/1.5/bin/java -cp bin/DataLoader.jar com.salesforce.dataloader.process.ProcessRunner process.name=LoadProducts


That should also work under Windows.
SuperfellSuperfell
looks like you're on windows, if you want to use batch files from a batch you need to use the call statement, so you outer batch file would be

REM first call export
call process ../conf exportPF
REM now call update
call process ../conf updatePF
cmarkcmark
i added the "call" command and it works.  thanks for your help!
chris