SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
24 x 7 Scheduler not running file with environment variable

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
24 x 7 Scheduler not running file with environment variable
Author Message
DEEPAK JAIN



Joined: 26 Jun 2018
Posts: 5
Country: India

Post 24 x 7 Scheduler not running file with environment variable Reply with quote
All the jobs are getting failed and showing below error when we put its path with environment variable as highlighted:

Job errors: Create process error. Extended error: Cannot run program "%ZN_TASKS_PRICE_UPLOAD%\ZN_Batches\credit_margin_export.bat": CreateProcess error=2, The system cannot find the file specified

But when we are using complete URL then scheduler is able start the job. Although scheduler is running as service and environment variable is system variable
Tue Jun 26, 2018 9:39 am View user's profile Send private message Send e-mail
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7833

Post Reply with quote
Have you restarted the service after changing the environment variable?
Tue Jun 26, 2018 11:02 am View user's profile Send private message
DEEPAK JAIN



Joined: 26 Jun 2018
Posts: 5
Country: India

Post 24 x 7 Scheduler not running file with environment variable Reply with quote
thanks for the response.

I have tried echo "/%ZN_TASKS_PRICE_UPLOAD%/" > c:\temp\test.log and reset the services after setting up environment variables.But it is still not working.I have tried cmd / c in front of command line and it is running the batch file.Could you please suggest how to wok without cmd /c as our all jobs are configured with environment variables.
Fri Jun 29, 2018 3:55 am View user's profile Send private message Send e-mail
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7833

Post Reply with quote
Somebody suggested to me to add cmd /C to the environment variable value. This little change should resolve the issue. Hope that works for you.
Fri Jun 29, 2018 9:04 am View user's profile Send private message
DEEPAK JAIN



Joined: 26 Jun 2018
Posts: 5
Country: India

Post 24 x 7 Scheduler not running file with environment variable Reply with quote
Actually we are not allowed to make such change (add cmd/ c in front of environment variable) in our production environment and also older version is working fine without adding this.
Fri Jul 06, 2018 2:36 am View user's profile Send private message Send e-mail
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.