Passing Java error to Visual Cron - VisualCron - Forum

Community forum

jonreo55
2012-12-12T14:07:31Z
I am runnig the SalesForce dataloader jar with Java. The command I use is:
{USERVAR(GLShareRoot)}\AppProcess\BIS\SalesForce\DataLoader\Java\bin\java.exe

with the arguments of:
-cp {USERVAR(GLShareRoot)}\AppProcess\BIS\SalesForce\DataLoader\dataloader-26.0.0-uber.jar -Dsalesforce.config.dir={USERVAR(GLShareRoot)}\AppProcess\BIS\SalesForce\DataLoader\conf com.salesforce.dataloader.process.ProcessRunner process.name=csvActivitiesExtractProcess

I see the ERROR in the output file but I believe that Java.exe is exiting normally. I would like to stop the job at this point and have Visual Cron report the error.
Support
2012-12-12T14:13:22Z
Ok, so, the exit code is from java.exe and and guess it always exits successfully. You could try to use the "Use shell execute" method and just specify the path to the command. But if you do that you won't get the output (but perhaps it will exit properly).

But the main question is if your dataloader ever returns another exit code - probably not. Only way I see to do this is to use a Condition on Task 2 that checks the std error output of Task one and then do something based on that.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top