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.


Guest
2019-04-15T14:17:40Z
Hi Team,

We are having an extraction tasks that uses an executable file and this exe file inturn uses a batch books ( a collection of report/reports ) to generate a single report. Also, the level of access is high and the same exe file is working fine in other servers.

VisualCron version is 8.2.1.

Error in VC:
Exception in Task: Non zero exit code

Regards,
Hari.
Sponsor
Forum information
Guest
2019-04-22T16:31:11Z
HI Team,

Can we have some update on this ?

Regards,
Hari.
Support
2019-04-23T08:02:59Z
Hi,

this could be anything. You launch an executable using the Execute Task and it fails. In this case VisualCron just capture the error. If you have control over the exe I suggest you add some logging to it.

Probably it is a path, permission, missing files issue - or something different in the environment. Also, make sure you are running it as the same user as on other servers.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2019-04-24T13:55:28Z
HI Hendrick,

The exe file looks good and the same exe file is being used successfully in other servers.
Same users are running in the successful as well as unsuccessful servers.
Looks like the permissions and path has been compared between the successful and unsuccessful servers and everything looks good.
Can you suggest any other possible ways to look at from VC end ?

Regards,
Hari.
Support
2019-04-24T15:35:42Z
Originally Posted by: Hari_25 

HI Hendrick,

The exe file looks good and the same exe file is being used successfully in other servers.
Same users are running in the successful as well as unsuccessful servers.
Looks like the permissions and path has been compared between the successful and unsuccessful servers and everything looks good.
Can you suggest any other possible ways to look at from VC end ?

Regards,
Hari.



At the moment we can only guess. You need to take control over the exe (add debugging) so you can get more detailed errors why it is not working.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2019-05-02T06:18:12Z
HI Team,

For the same extraction task as said above, when we run the task directly by using a batch file ( which has the exe file as an argument in it ) , then the output ( report ) is generated. Whereas, we run the same batch file in a VC task with / without credentials, we are getting the below error:

Exception in Task: Non zero exit code

Adding to that, when we run the task in non-hidden window ( disabling the 'run in hidden window' option ) method, we aren't receiving any error message ( if any ) in the console window. Can we know the reason ?

Visual Cron Version is 8.2.1.
Support
2019-05-02T14:13:22Z
Originally Posted by: Hari_25 

HI Team,

For the same extraction task as said above, when we run the task directly by using a batch file ( which has the exe file as an argument in it ) , then the output ( report ) is generated. Whereas, we run the same batch file in a VC task with / without credentials, we are getting the below error:

Exception in Task: Non zero exit code

Adding to that, when we run the task in non-hidden window ( disabling the 'run in hidden window' option ) method, we aren't receiving any error message ( if any ) in the console window. Can we know the reason ?

Visual Cron Version is 8.2.1.



It is impossible to say. But 8.2.1 is at least 2 years old. It is impossible to debug that with that version. It cannot be compared when running the batch file because the environment is different some way. It could be another user (if Credential is not set right) or paths that are wrong or other.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
2019-05-03T02:54:26Z
Hello,

The credentials used are valid only. Also, the path used is also correct as the batch file is running perfectly if we trigger it directly. But if we pass that batch file as an argument in VisualCron, then the task is getting failed.

Regards,
Hari.
Support
2019-05-03T06:44:31Z
Ok, still, you need to add more debugging to the script to understand what fails exactly.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top