Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


appu32
2009-12-16T06:38:00Z
Hello,

I am running VisualCron 5.4.7 and am having a problem with a task in a job that always completes in error, though it achieves the intended result. I am hoping someone can help. Here is a description of the job and task:

The job has one task. The task in an execute type command task. I call a batch file (.bat) file. I've set the working directory correctly as c:\ and have also set the credential correctly as a domain user that has admin privileges on the server. The batch file does a sequence of tasks, it first copies files from a server using robocopy, it then establishes a vpn connection to an outside party and does a few transmissions, finally it copies the result files from the vpn transmission back to the source server using robocopy.

The task always shows as failed in visualcron. The message in the log file is "12/15/2009 7:06:37 PM Err Exception in Task: Non zero exit code
12/15/2009 7:06:37 PM Err Task "xxx" exited with code: 1(Incorrect function.)"

Though visualcron shows as failed, I get the intended result. What does this exit status mean? How can I get it to return a success status when it a success and error when it really is an error?

Any help would be much appreciated.

Sponsor
Forum information
Support
2009-12-16T11:06:07Z
Exit code is always captured by VisualCron but never visible when running it on the command line.

VisualCron considers all non zero exit codes as errors. You can suppress this by editing the "On error" settings for a particular Task (see On error tab).

Often, applications return errors even though the seem to work correct. It could be some handled or unhandled error that is pushed up to the process. It could be serious or harmless. Mostly harmless if application is working as expected.

Incorrect function is a generic error and it is hard - if you have not written the application yourself - to know what it means. In this case you haven't and will probably never find the true reason. I recommend you suppress the error or just ignore it.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
appu32
2009-12-16T15:32:36Z
Thanks Is there a way to make the job itself appear as a success?
Support
2009-12-16T19:33:55Z
Yes, if you go to "On error". Then you can deselect "Non zero exit code"
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top